View Single Post
Old 11-08-2007, 09:49 PM   #1 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default Zend Coding Guidelines

just recently started trying to 'standardise' the way i program, i stumbled across this article from Zend, mainly for coders developing software for the Zend framwork, but i think it translates well to other uses too.

In it contains some usedful advise that i had never thought of before, for example for PHP files that only contain PHP code the '?>' closing tag is not required, and according to Zend is to be omitted as it is not required by PHP not having it prevents trailing whitespace from being injected into the output.

there are somthings i would disagree with i.e. brace placing and also some people may dislike the "camelCaps" (which i use) but it proves a good read (well it did for me anyway)

here it is:
http://framework.zend.com/wiki/displ...rd+%28draft%29
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote