Re: Code should be selv-maintaining!

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

 



On Aug 29, 2011, at 4:32 PM, George Langley wrote:

> "The One True Brace Style":
> 
> <http://en.wikipedia.org/wiki/Indent_style>
> 
> Didn't know there was a name for the way I learned to indent! Make sense to me - looks so much cleaner and less scrolling/printing.
> 	And, I already add a comment to confirm the end brace:
> 
> } // end if($myVar)
> 
> to clarify any long nests.
> 
> George

To all:

I prefer the Whitesmiths style:

http://rebel.lcc.edu/sperlt/citw229/brace-styles.php

But "style" is really up to the individual -- what works best for you is the "best" (unless it's a team effort or the clients demand).

Cheers,

tedd

---

tedd@xxxxxxxxxxxx
http://sperling.com




-- 
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