Re: PEAR coding standards

From: Date: Sat, 19 May 2001 17:29:53 +0000
Subject: Re: PEAR coding standards
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-402@lists.php.net to get a copy of this message
On Sat, May 19, 2001 at 03:32:34PM +0100, Thomas Hurst wrote: | Some comments/questions. | | > Indenting | > Use an indent of 4 spaces | | 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. :-) | > 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. -- Øyvind Møll oyvindmo@initio.no

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