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

Re: Debian coding style?

Hash: SHA1

On Sat, 8 May 1999 01:36:40 +0200, Wichert Akkerman wrote:

>> 10. Function/method size: bigger is not better. Functions and methods 
>>shold be kept to a maximum of 40-50 lines. Larger methods should be broken 
>>down into several smaller methods.

>I tend to use functional blocks in a function as guideline instead of

    This one kinda tweaks me.  Now, is that 40-50 functional lines (IE, not
counting the braces) or total lines?  Also, given that code size "should" fit
on the screen (defined as, what?  80 characters?  What the programmer decides
to size his screeen to at the moment?) one could go the perl route and just
code everything on one line.

    To me it seems foolish that code which runs together and generally isn't
reused should be constrained so.  Maybe that is why I dislike so many
different "higher" languages that make me type out 3-5 lines to do the task
of what should be one.

- -- 
         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.
- -------------------------------+---------------------------------------------

Version: PGPsdk version 1.0 (C) 1997 Pretty Good Privacy, Inc


Reply to: