TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Zend Coding Guidelines (http://www.talkphp.com/general/1417-zend-coding-guidelines.html)

sketchMedia 11-08-2007 09:49 PM

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

Karl 11-09-2007 03:54 PM

Yep it is a good read and has some valuable tips.

DragonBe 11-14-2007 10:53 AM

Hmm, apparently I code using the Zend Framework standards which are comparable to the PEAR standards. Oh no, I'm standard !


All times are GMT. The time now is 10:20 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0