Re: PEAR coding standards

From: Date: Sun, 20 May 2001 20:27:32 +0000
Subject: Re: PEAR coding standards
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-404@lists.php.net to get a copy of this message
I really must start hitting follow up and not reply to, sigh :) On 19 May 2001 10:27:35 -0700, oyvindmo@initio.no (Oyvind Moll) wrote: > On Sat, May 19, 2001 at 03:32:34PM +0100, Thomas Hurst wrote: > | And what's wrong with the standard quote character? :P > | What's wrong with tabs? > > They mess up "multilined lines", i.e.: > > printf("Foo %s bar %s", > $baz, > $fum); > > ...unless people are careful not to. And people are generally not > careful. :-) 1 tab and 6 spaces would have the same effect. > | > if ((condition1) || (condition2)) { > | > action1; > | > } > | > | if (foo) > | { > | bar; > | } > > The latter is simply one line longer. Within reason, code is more readable > when you see more of it at once, so less lines of code is better. To a point. Whitespace seperating blocks of code is Good[tm], especially when it helps reduce parse errors that tend to appear 100's of lines away. -- Thomas 'Freaky' Hurst - freak@aagh.net - http://www.aagh.net/

« previous php.pear.dev (#404) next »