begin  quoting [EMAIL PROTECTED] as of Fri, Mar 14, 2008 at 01:50:02PM -0700:
> You'd think KISS principle would make people embrace the Linux coding style...

No style will be "embraced" by everyone.

And that's fine.

> (80 column lines & 8 space indents)
> 
> Instead they cringe!

I cringe at 8-space indents. That's too much.

> Now *I* cringe when I hear about 2-3 space idents and 130 column lines.

Well, 2 is too few (except for html/xml); 3-4 seem about right; 5 is
getting a bit much.

With 8 spaces, you need 130 columns, or you end up playing stupid games
with variable and function names. Or, at least, I do.

> Anyone ever seen a case where lotsa little functions *wasn't* ideal and *very*
> nice? 

Yes.

>       8 space tabs/80 columns forces you to chop your problem into little bite
> sized functions!!! I love it!

It's not the absolute size of the function that's the problem. It's the
concepts in the function that matter.

It's more important to avoid mixing levels of abstraction than to
mandate tiny functions.  It's better to have a function that does only
one thing, rather than to have two functions that do half a thing.

-- 
Lemme play this card: I often have a hard time reading Smalltalk programs.
Stewart Stremler

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to