A Productive Day

According to our stats, yesterday I deleted over a thousand lines of code – sounds like a productive day to me. Hopefully today I'll find another thousand lines to delete. It's amazing how unused methods can build up without you noticing. Eclipse will tell you about unused private methods, but not about public ones that aren't used anymore. Most of them had unit tests even, just that the entire functionality had become unneeded. There's probably some duplication in there as well that will let us delete more lines of code.

Just another example of why you shouldn't judge programmer productivity based on the number of lines of code they write (which Ephox has never done for the record).

One Response to “A Productive Day”

  1. Iain Robertson Says:

    Ah yes: metrics for metrics’ sake. My employer is a big fan of Earned Value, and the only real way to make collective earned value grow is, generally speaking, to let the code base grow. As it stands we’re well over 100kSLOC1, and growing, for a product that could (largely) be replaced with COTS or Open Source product, or more precisely combinations thereof, if only we’d properly embrace “acquire” instead of “build.”

    Management have been known to become positively ecstatic when, in the course of a few hours, junior developers write methods (yes, methods — not classes!) containing 1000 lines of non-comment code, and ask all sorts of Very Pointed Questions when said code gets refactored into something a little more efficient, partly because it looks like we’ve gone backward, and partly because it’s “bad” for the SLOC/hour metric. Perish the thought of redundant code ever being deleted!

    Fortunately we have a few sensible team leads who act as a fantastic buffer, and who understand the pointlessness of such metrics.

    1. Source Line(s) Of Code, or thousand Source Lines Of Code – more accurately, semicolons (it’s a rough calculation of executable code, i.e. excludes comments and the like). Utter garbage, of course, since several of our senior developers can write in fifty lines what the juniors will take five hundred to do.


Leave a Reply

(Valid OpenIDs will skip moderation)

Alternatively, subscribe to the Atom feed.