Skip to Content.
Sympa Menu

freetds - Re: Coding style document

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: Coding style document
  • Date: Thu, 13 Jun 2002 11:59:55 -0400


> From: Bill Thompson [mailto:thompbil AT exchange.uk.ml.com]
> Sent: June 13, 2002 11:07 AM
>
> Oh man, I'm unsubscribing right now!
> The "UG Clarification" thread almost did for my inbox, but now it's
> definitely a case of "she cannae take much more, captain!"

What? What kind of lame email client are you using without a decent
empty-opinion detector and a route-to-Nonsense-folder rule?

Don't go, Bill. This will be fun!

For instance, how come Brian's for-loop examples are all space impaired?
The spacebar is the biggest key on the keyboard, so obvious my cat uses it,
but somehow we're still typing for-loops like we'd have to wait for our
300-baud modem to send the whitespace.

Instead of

for (i=0;i<x;i++) {

I always write

for( i=0; i < x; i++ ) {

even though I'd accept the quainter

for (i=0; i < x; i++) {

That's so much easier to read, don't you think? Makes me feel like
breathing. <breathe> Everyone except a compiler knows a space should follow
a semicolon.

Subnote: if "i" or its initializer is more than one character, space aids
clarity there, too. Thus "i=0" becomes "hours = 11".

See? What's a hundred weightless opinions on a age-old topic among friends?


Regards,

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page