http://www.perlmonks.org?node_id=986871


in reply to Re^2: Perl Elitist Code vs Functional Code
in thread Perl Elitist Code vs Functional Code

the entire post relates to quick hacks nothing that would ever become a full fledged script.

That's kind of the point, though: some people say such a thing doesn't really exist. In their experience, "quick hacks" have a way of growing into larger, more complex programs and being maintained by larger groups of programmers. So it makes sense for them to design all their programs as if that will be the case, even if the need doesn't seem to be there at the start.

On the other hand, some of us have written plenty of quick hacks that have never needed to be expanded, or used and maintained by anyone else -- many were even used once and discarded. That being the case, any amount of time spent making them more than simply "functional" would have been a waste.

Where you fall on a range between those two extremes depends on your own programming style and your work situation -- how often is your code reused or shared with others? Based on those things, you have to make your own judgments about your own coding needs.

Aaron B.
Available for small or large Perl jobs; see my home node.

  • Comment on Re^3: Perl Elitist Code vs Functional Code