Re: Tutorial on proper code formating

From: Date: Thu, 11 Apr 2002 18:13:20 +0000
Subject: Re: Tutorial on proper code formating
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-92629@lists.php.net to get a copy of this message
On Thu, Apr 11, 2002 at 01:33:40PM -0400, Erik Price wrote: > > http://utvikler.start.no/code/php_coding_standard.html Uch! Uch! Uch! I don't like their nesting ideas: if (condition) // Comment { } else // Comment { } This is the standard I learned and find easier to read: if (condition) { # Comment } else { # Comment } http://www.perldoc.com/perl5.6/pod/perlstyle.html has some ideas too. But it also calls for "uncuddled elses." Here's a link to another style guide http://slashcode.com/docs/slashstyle. In essence, you'll find that tastes vary. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

« previous php.general (#92629) next »