Re: Re: PHP Coding Standards

From: Date: Mon, 31 May 2004 05:26:40 +0000
Subject: Re: Re: PHP Coding Standards
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-187261@lists.php.net to get a copy of this message
I have to say I like everything about the PEAR coding standards except for the K&R bracing style. I much prefer: if( foo ) {
     blah;
} to if( foo ) {
     blah;
} The latter form (K&R) conserves vertical space, but I find it a lot harder to follow. Harder to move blocks of code around too. I'm sure plenty of people disagree, so of course this is IMHO. cheers, Travis Michael Nolan wrote:
charles kline wrote:
Hi all, I was having a conversation with a friend and talking about coding standards in the open source community (focusing on PHP). I seem to remember there being a document out there that sort of laid it out pretty well. Anyone know where I might find a copy?
PEAR has a page in their documentation about coding standards: http://pear.php.net/manual/en/standards.php HTH, Mike
-- Travis Low <mailto:travis@dawnstar.com> <http://www.dawnstar.com>

« previous php.general (#187261) next »