Re: Re: Function size
|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"Tim Streater" wrote in message news:D0.7C.45755.25A3BCF4@xxxxxxxxxxxx...
Exactly! That's one good reason *NOT* to break up a large function into artificially small pieces. You generate a lot of useless code just to handle the small pieces, and wading through lots of useless code makes it less readable. In my opinion it takes less effort to use the scroll wheel on my mouse than it does to jump/return from different parts of the file. There are times when it makes sense to split a large function into smaller pieces, but I'm afraid that doing so for no other reason than to satisfy someone's personal line limit is just not good enough.
-- Tony Marston http://www.tonymarston.nethttp://www.radicore.org
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php