34

An open letter to those who think lines of code == a decent metric for productivity:
NO!!!

Just because I wrote 10 lines of code all day (yes just 10 very well thought out, many times rewritten) lines doesn't mean my day was unproductive. Quite the opposite, while other devs pad their shit with:

//Adds 1 to I
I++;

Yup. Quality code. LOC doesn't lie.

Comments
  • 23
    @Alice
    /*
    * returns
    * @param
    *
    */
    return
    param;
  • 12
    I'd love to be paid by lines of code. I'll keep an eye out for such organizations.
  • 13
    @sharktits it's beautiful and horrific all at once! Take all of my ++, and then never do that again. *Shudders*
  • 14
    @deadPix3l Does your company's LOC analysis tooling count comments too?!

    If so, I'd suddenly be the queen of beautiful, flowing, descriptive comments---with liberal whitespace...for readability, of course.

    Your company needs to state this as part of its HR activities. Lots of us interested.
  • 6
    @platypus lol don't be. Im pretty much the only developer, so nobody understands what I do all day. Unless I write a hundred scripts, or a single 1000 line script, I'm viewed as being unproductive. And the pay is meh. Don't envy me lol
  • 3
    No one who works with software thinks LoC is a useful metric for productivity.

    The only thing I can think of right now is getting a grasp of how much will be changed in a git diff.
  • 3
    it's like managers would get paid by lines of text they write in mails/docs/presentations...
  • 3
    if
    (
    var
    ==
    condition
    )
    {
    return
    randomfunc
    (
    param
    )
    ;
    }
  • 0
    It's even funnier when you remove duplicated code and have negative LOC.

    Luckily, I don't get paid by LOC, but by getting shit done.
  • 0
    Also

    1 enter on the first line

    +10037, -10036

    🤣
Add Comment