John Cox has this new post on his blog today about a thisd PHP coding standard document he discovered off of a del.icio.us feed.
I have had a hard time breaking some of my old habits working with a more strict coding style now that is enforced via QA checks. I mainly have the most problems breaking myself of bracket new lines, as I prefer the same line on functions. However, following some sort of guideline definitely makes code more readable to myself, instead of trying to follow my own sick, twisted logic from files written two years ago.
I stumbled across a rather good php coding standard doc written in 2003 via del.icio.us this evening. I agree with almost everything that I see minus the documentation part. phpdoc style documentation should be a standard in any application, big or small. It is easy to read and easy to update.
I think a lot of PHP developers out there are still in the learning process when it comes to coding standards. This document does provide a good starting place, but it's really up to the developer to try to integrate the standards into their daily coding...




