Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Maintenance vs. Programming style

by ysth (Canon)
on Jan 30, 2008 at 03:01 UTC ( [id://665053]=note: print w/replies, xml ) Need Help??


in reply to Maintenance vs. Programming style

I've inherited code written by someone who wrote verbosely. I keep finding myself saying "I could make this so much smaller, so much more efficient".
I completely agree with you. And completely disagree with you. It really depends what you mean be "verbose" and "efficient". An example would have been very illustrative.

Replies are listed 'Best First'.
Re^2: Maintenance vs. Programming style
by sundialsvc4 (Abbot) on Jan 30, 2008 at 04:58 UTC

    Definitely true. “Smallness” and/or “verbosity” make not-the-slightest bit of difference to the Perl compiler, which is going to translate the whole thing into a p-code tree anyhow, and “efficiency” is pretty much subject to exactly the same argument-of-irrelevance. (At a billion ops-per-second, no one can hear you scream.)

    A good rule of thumb that I have adopted over the years, borne from the reality that for me it was true, is ... “would you spend your money to change this? If so, how will you convince your ever-skeptical board of directors (good folks... great at asking the hard questions) that you are actually right?”

    If the answer is “no, there really isn't a short-term Return On Investment (ROI) in this,” ... don't do it! Spend the money on a really good beer, instead.

Re^2: Maintenance vs. Programming style
by apl (Monsignor) on Jan 30, 2008 at 14:04 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://665053]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-25 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found