Code Standards » History » Revision 6
Revision 5 (Amber Herold, 03/05/2010 02:02 PM) → Revision 6/21 (Amber Herold, 03/05/2010 02:14 PM)
h1. Code Standards
If everyone uses the same coding style, it is much easier to read code that someone else wrote. That said, style is not important enough to enforce during a code review. It is much more important to ensure that best practices are followed such as implementing error handling .
h2. Python
"Python Style Guide":http://www.python.org/dev/peps/pep-0008/
h2. PHP
This one is a bit old, but lots of good stuff that goes beyond style. Some things are questionable. I prefer Getters/Setters over Attributes as Objects (at least how the example shows it) to allow for better error handling. I prefer no underscores in naming except for constants that use all caps...but that is only a style issue.
"PHP Coding Standard":http://www.dagbladet.no/development/phpcodingstandard/
From the Zend framework folks:
http://framework.zend.com/manual/en/coding-standard.html
An intro:
http://godbit.com/article/introduction-to-php-coding-standards
Nice Presentation:
http://www.phpunit.de/pocket_guide/