RE: [PHP] Cleaning up my messy code
| From: | Jay Blanchard | Date: | Mon, 29 Sep 2003 20:02:38 +0000 |
| Subject: | RE: [PHP] Cleaning up my messy code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-164296@lists.php.net to get a copy of this message | ||
[snip]
I'm not looking for an IDE or code generator so much as some practical
advice for organization and framework when developing a larger app. I
know
of PHP Fusebox, having programmed with Cold Fusion fusebox for a while,
but
it seems like that might be too much. Maybe I just need a sensical,
practical approach to application layout. What do you all do? How can I
learn to be a better PHP programmer in this regard?
[/snip]
COMMENT! COMMENT! COMMENT!
I, a self-professed documentation freak, subscribe to creating a
descriptive (it does not have to be voluminous) header
/*
** Name of Script
** Who
** Date Created
**
** yyyy-mm-dd xx is the date and initials format for adding comments to
this namespace.
** Place comments concerning changes made to the namespace
within this comment header
** and where necessary due to complexity comments should
be placed directly above the
** area of code affected.
*/
/*
** 2003-09-29 jb what follows is particularly creative bit of code
*/
...do creative code....
Easier to do as you go then at the forgetful end