On 2011-08-31, at 11:44 PM, Ross McKay wrote: > On Tue, 30 Aug 2011 10:04:54 -0400, Tedd Sperling wrote: > >> 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). > > I note on your page that you prefer Whitesmiths (truly ugly!) style even > for JavaScript. I'd strongly recommend against that, and also Allman > style, due to semicolon insertion. e.g. (randomly selected from Google) > > http://encosia.com/in-javascript-curly-brace-placement-matters-an-example/ > http://robertnyman.com/2008/10/16/beware-of-javascript-semicolon-insertion/ > > Sure, instances of the problem are minimal, but if you're in the habit > of Dangerous Open Brace Placement then you just might fall afoul of it. > > Besides, my editor (Geany) folds code mostly neatly with K&R :) ----------- FWIW, am working my way through an O'Reilly book (HTML5 Canvas) right now and they appear to use The One True Brace Style in their code examples. Not religious about it, but it does help me know which code I wrote and what was touched by someone else! George -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php