Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I'm currently working on combining four classes into one - they all do very similar things and are all cut&pasted&modified versions of each other (although the genius author I inherited it from decided to do things slightly differently in each one, so one is mostly pl/sql and keeps its variables in organized hashes, another performs most of the logic server-side and has tons of class variables instead of hashes, etc., etc.) and I keep having to add identical functionality to each one as requirement change.

So anyway, I'll be cutting the original 5,300 LOC by at least half, possibly two-thirds (no more, because he liked writing 400 line uncommented functions). It should take about three solid weeks of work - that means I'll have 2,650/15 = -177 LOC/day! It's going kind of slow because I'm teasing the logic out of undocumented, buggy code. So I think LOC is a Load Of Crap (I think maybe my predecessor was paid by the line, and it shows).

The problem with Productivity with a capital 'P' is it's hugely subject to interpretation. Am I more productive if I grind out crummy code that works quickly? Would the time have been better spent doing it correctly, so that when the requirements change the code is flexible enough to handle it? That's part of the art of productivity - knowing when to grunt out a steaming LOC and when to carve a flawless diamond. The funny part is the better the requirements are to start with, the less the quality of your code matters.

In reply to Re: (OT) Proving Productivity? by bean
in thread (OT) Proving Productivity? by Ovid

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    [stevieb]: Damn... just wasted two hours wondering why num 23 wasn't setting bit 5 in a register. I was working on the decimal, but the register holds BCD numbers. Sigh.

    How do I use this? | Other CB clients
    Other Users?
    Others lurking in the Monastery: (8)
    As of 2018-05-22 16:35 GMT
    Find Nodes?
      Voting Booth?