|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re (tilly) 3: What you want and perl advocacy gone way wrongby tilly (Archbishop) |
| on Jan 18, 2001 at 00:30 UTC ( #52600=note: print w/ replies, xml ) | Need Help?? |
|
I have posted enough code to this site, feel free to grab some and criticize. When I have examined my code in the past I find that my average function is about 10 lines. At a guess about 1/3 of those functions are public for whatever package they are in. Public functions get a comment. Function names are descriptive. Most variables are private to a function. If I cannot find a descriptive name for a 10 line function that gives you some idea why that function exists, that indicates a problem in how I am breaking the problem up. As with any personal style, it takes getting used to. And no, I don't always do a particulalry good job of it. But I don't think that modularizing less and commenting more would be an improvement.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||