Saturday, April 07, 2007

Coding Standards

It's often of great benefit to stick to some coding standards when a system is being built by a team of developers. Even in case of a single developer following some form of code standards would be of great benefit. Sticking to coding standards makes it easier to understand the code written, easier to find bugs and makes the code less prone to having bugs in the first place.

Here are some coding standards for PHP that have been set forth by the PEAR group. Even if you are not writing code for PEAR, it might be a good idea to incorporate some or all of their coding standards while writing your own code.