IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Great question
Some languages are impossible to digest if they are more than a screenful - for example I could easily read your Perl that you recently posted, but if it's more than a function or two, it gets very hard. FORTRAN and COBOL were easy to read in 100 page listings. C is somewhere between - but in general it is much easier to read if broken into smallish pieces (say, a file per major function).

In general, the more a langauge relies on non-alphanumeric symbols, the smaller the digestible chunks - exception FORTH, which should never be more than 60 or so lines per chunk (because of the mental gymnastics needed to interpret the stack).
-drl
New Re: Great question
[...] exception FORTH, which should never be more than 60 or so lines per chunk

60 lines per chunk? For FORTH? 60 lines would be a mind-numbingly huge FORTH word (i.e. routine). FORTH words tend to be very small, many one-liners, up to three lines very common, 5 lines would be on the large size, and 20 lines would be HUGE!

Perhaps you didn't mean Chunk = Word.
--
-- Jim Weirich jweirich@one.net [link|http://onestepback.org|http://onestepback.org]
---------------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)
New Re: Great question
I think I meant 20 - was thinking of a traditional "screen". I transposed rows and columns :)
-drl
     How long should routines be in different kinds of code? - (ben_tilly) - (12)
         Great question - (deSitter) - (2)
             Re: Great question - (JimWeirich) - (1)
                 Re: Great question - (deSitter)
         Are you looking for more discussion? ;) - (FuManChu) - (2)
             The responses that I liked best... - (ben_tilly) - (1)
                 Re: The responses that I liked best... - (JimWeirich)
         Re: How long should routines be in different kinds of code? - (JimWeirich) - (3)
             McCabe's complexity metric is utterly fscked - (neelk) - (2)
                 While I agree with your sentiment - (Simon_Jester)
                 I won't disagree... - (ben_tilly)
         2 pages max for Perl for me - (broomberg)
         My rules of thumb - (tuberculosis)

How can he be so skinny and live SO phat?!?
87 ms