PHP Coding Standard - Site Devs please read
Posted: Thu Jul 14, 2005 8:47 am
This is just something for discussion, but when I was looking at Scott's code for gaming it took a while for me to understand the way he did some things, simply because he codes differently to me. Another person looking at my code would think the same thing (what the hell is $vTmp)? That's one of the great things about PHP - the flexibility to code in your own style. This is fantastic when you are working alone, but we - as a killanet programmers - are working as a team to code sites.
I was thinking that it would make things a lot easier if we adopted a coding standard - similar to the web standards project for HTML and CSS. A quick google turned up this:
[url=\"http://www.dagbladet.no/development/phpcodingstandard/\"]PHP Coding Standard[/url]
Obviously this would mean each person changing the way they code slightly, and a bit of extra work for all of us - but if this was something that we could strive towards I think it would make it a lot easier for us to work together on projects and provide support without having to interperet each other's naming conventions etc.
As I said, this is something for discussion, so please read at least the introduction to the standard and post your thoughts here.
I was thinking that it would make things a lot easier if we adopted a coding standard - similar to the web standards project for HTML and CSS. A quick google turned up this:
[url=\"http://www.dagbladet.no/development/phpcodingstandard/\"]PHP Coding Standard[/url]
Obviously this would mean each person changing the way they code slightly, and a bit of extra work for all of us - but if this was something that we could strive towards I think it would make it a lot easier for us to work together on projects and provide support without having to interperet each other's naming conventions etc.
As I said, this is something for discussion, so please read at least the introduction to the standard and post your thoughts here.