LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[Webdev] Learning PHP

[Webdev] Learning PHP

Justin Mason jm at jmason.org
Fri Dec 20 13:04:35 GMT 2002


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>  ;)

--j.



More information about the Webdev mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell