It's Not About Lines of Code
Charles Connell writes: "What makes a programmer highly productive? Is it lines of code per
day? Lines of good code? In this article, I examine the concept of software
productivity. I look at some of the standard definitions for productivity
and show why they are wrong. I then propose a new definition that captures
what programming really is about." Read on for Connell's stab at a better way of evaluating the worth of programmer time.
CT Originally the contents of an article were here but there was
a communication problem resulting in us thinking we were given permission to
print the article here. Now that things have been cleared up, we've linked
the
original article which you can read instead.
Sorry about the inconvenience.
They should evaluate programmers by the length of thier beards. =)
I SURVIVED THE GREAT SLASHDOT BLACKOUT OF 2002!
As far as "what makes a programmer productive", I know what makes a programmer unproductive... reading Slashdot all day. Back to work, all of you!
I don't care if it's 90,000 hectares. That lake was not my doing.
"I need you to be great and create something totally fantastic and immensely profitable by Friday, Can you do it?"
Why programmers consider murder:
"What's taking you so long? I've already built something just like it in Access."
Why programmers retire early:
"We're totally bankrupt, you probably didn't work hard enough. Thank goodness I've got a golden parachute."
A feeling of having made the same mistake before: Deja Foobar
; )
"If being a geek means being passionate about something, then I pity those who aren't geeks." - Pike65
Huh? What are you talking about!?
Now I suppose you're going to call the "Man-Month" measurement of a project's size some kind of myth!!
This is why you tell managers numbers that will make them comfortable with your progress, no matter if they are really accurate. The better your managers feel about your work on the project, the better you will feel, since they will stop bothering you as much. In other words, arbitrary and meaningless questions deserve arbitrary and meaningless answers.
:)
Of course, you still need to finish everything on time or your arbitrary and meaningless answers won't work the next time.
Boss: How many lines of code did you do today?
Coder: 1
Boss: [next day], how many lines did you do today?
Coder: 1
Boss: [day 3] how many lines did you do today?
Coder: 1
Boss: how come you only do one line per day
Coder: Actually I'm working on the same line.
Boss: How many lines is the damn program?!?
Coder: 1
Boss: You're programming in Perl again arent you...
... that Java is better than Perl. It takes so many more lines of code to do the same simple thing. 'splains everything.
Miko O'Sullivan
This is why the iterative development method is useful -- you set a certain number of things you want to see done by such-and-such a date (best done with the interaction of the developer), then if it's not done the developer better have a good reason.
This approach works on most development projects (with the possible exception of very new projects with no existing product) and only when at least the lower level managers understand the development of the project and can participate in setting the goals.
Oh, and here's the big secret: then you build on an extra 15 days for every six months of the project and don't tell anyone involved with the development. That way, you look like a hero if it gets done in time and don't lose your job if its not. Don't tell anyone.
Every year during my review, I just pray the words "slashdot.org" aren't mentioned.