Re: PHP Standard style of writing your code

From: Date: Sat, 29 Apr 2006 22:12:27 +0000
Subject: Re: PHP Standard style of writing your code
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-235118@lists.php.net to get a copy of this message
At 03:19 AM 4/29/2006, Robert Cummings wrote:
On Sat, 2006-04-29 at 02:08, Paul Novitski wrote:
        IMHO, vertical aligned brackets can be messy when nesting
relatively-small blocks (and seems to me like a lot of wasted space)
<nsip> like a use, not a waste. OK, OK, I'll stop. Think I'll go out and get wasted~ Drink with friends... that way you have someone to brace you when you're fall down drunk. Cheers, Rob.
Poorstyle: drunken(){
        echo "Lopsided me;
} Goodstyle: drunken() {
        echo "Supported me";
} But the question arises, in "goodstyle" - should one indent the braces? I used to code "goodstyle", more and more it's "poorstyle" - nad the computer doesn't care, and Ultraedit can match braces, which helps when I get "lost". I wish UE would also fold code. With tongue firmly in cheek - cheers - Miles -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 4/28/2006

« previous php.general (#235118) next »