|
Page 1 of 5
PHP Commenting and Style As you write more complex scripts, you'll see that you must make it clear to yourself and to others exactly what you're doing and why you're doing it. Comments and "good" naming can help you make clear and understandable scripts because:
* When writing a script takes longer than a week, by the time you're done, you won't remember what you did when you started, and you will most likely need to know. * Any script that is commonly used will need rewriting sooner or later. Rewriting is much easier (and in many cases, made possible) when you write down what you did. * If you want to show someone your scripts, they should be nice and neat.
|