Re: PHP Standard style of writing your code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux