Re: Code should be selv-maintaining!
| From: | Paul M Foster | Date: | Thu, 01 Sep 2011 04:36:10 +0000 |
| Subject: | Re: Code should be selv-maintaining! | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-314689@lists.php.net to get a copy of this message | ||
On Wed, Aug 31, 2011 at 08:20:14PM -0400, Tedd Sperling wrote:
> On Aug 30, 2011, at 3:09 PM, Robert Cummings wrote:
>
> > On 11-08-30 11:36 AM, Richard Quadling wrote:
> >> On 30 August 2011 15:04, Tedd Sperling<tedd.sperling@gmail.com>
> >> wrote:
> >>> 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
> >>
> >> At last!!!! Someone's code I could read without having to reformat
> >> it every bloody time!!!
> >>
> >>
> >> http://en.wikipedia.org/wiki/Indent_style#Whitesmiths_style
> >
> > You're just saying that so Tedd will be your friend!! Come now,
> > let's be honest with everyone... Whitesmith's is UUUUUUUUHHHH-GLEE!
> > ;)
> >
> > Cheers, Rob.
>
> No, not indenting braces is BBBBUUUUTTTTT
> UUUUUUUUUUUUGGGGGGGGLLLLLYYYYYY.
>
> Make things uniform -- a condition followed by indented code located
> between equally indented braces makes sense to me.
> How people read
> other code styles is a mystery to me.
Indeed it is a mystery, a religious one. The way we do it is because we
finally broke through the clouds of earthly obfuscation to comprehend
the blinding truth that is K&R. Amen.
(Nah, it wasn't Kool-Aid. Tasted more like a cross between RC Cola and
Dr Pepper.) ;-}
Paul
--
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com