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