Philip Reynolds said:
> Russell Matbouli's [russell at futureless.org] 22 lines of wisdom included:
> > Of course. I 'disclaimered' this in :) I've heard people saying that
> > your 'code' should fit on an A4 page when printed out. Whether they're
> > referring to a subroutine, a class or just any code, I don't really
> > know. I think it's still the same principle - being able to read the
> > code.
>> Well that's rubbish :)
Of course it can, you just make the font smaller ;)
BTW there's a downside to this current fashion for small functions (esp in
OO languages) -- namely "stack spaghetti": when small method A calls small
method B calls small method C ... D ... E. If those methods are
scattered all over 5 separate class files, you'd be *so* much better off
with the old "bad" practice, with a 3-pages-of-A4 function in one file!
<flamebait> Java programmers love doing this. </flamebait> ;)
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!