Log in

No account? Create an account
entries friends calendar profile It's Me Previous Previous Next Next
The Autobiography of Russell
Life from a different perspective
LOC and chairs
Here is why counting lines of code (LOC) is a bad practice (or standard): I just re-wrote a data abstraction class and it went from 800+ lines to 300+ lines and not a single feature was added, changed, or removed. Whoever says lines of code is good practice around me will immediately lose all of their credibility as far as I'm concerned. End of story.

In other news, earlier today my mom asked me when I would be ready to go out. After a few more questions she told me they wanted to buy something for me for my birthday and wanted me to pick it out. I, err... anyway. We left a few hours later (after lunch) and headed off to the other side of town. My brother was driving his vehicle and passed up the place. It was next to a sports bike / four-wheeler place. The place we actually went to was a office supply and printing shop. Once we got out I saw the front door said "Mon - Fri" but my parents assured me someone was there (they called ahead for once).

We got in and my mom said to pick out a chair. My obvious response was 'what? why?' .... they thought I needed a new chair because the one I have in front of my computer looks so worn out. I neither want or need a new chair as I am perfectly content with this one which they bought at an auction over five years ago, but I humored them and tried out a few.

Half of the chairs were out of the question from the get-go because they had arms and most of those probably wouldn't fit under my desk. All of them had backs harder, or maybe just as soft, as my current one and all of the seats and backs were smaller than my current one. I like to put my feet on the chair seat half the time so that would be more difficult with one of those chairs. As you can see, I was not pleased with being dragged out to get something I neither needed or wanted.

Current Mood: cranky cranky
Current Music: "Calling All Angels" by Jane Siberry

3 comments or Leave a comment
d2leddy From: d2leddy Date: July 10th, 2005 06:17 am (UTC) (Link)
LOC is just silly.
kosenagi From: kosenagi Date: July 11th, 2005 07:15 pm (UTC) (Link)
LOC sucks. It can be a good tracking measurement, but we constantly deal with issues at work concerning performance from legacy programs left over from the days of "paid by lines of code programed"

People just coded meaningless loops and junk to get a few more lines and get paid more, and now that that practice has been abandoned we have to slowly rewrite all these old legacy things because it hurts system performance.
zimzat From: zimzat Date: July 11th, 2005 07:37 pm (UTC) (Link)
It doesn't seem like a good measurement even for tracking.

A program that currently takes 20,000 lines of code might be possible to write with only 10,000 lines, and then there are times when that 20,000 lines might end up being 30,000 or 40,000 lines. So which count do you use as a tracking guide of project progress? If you use the 10,000 lines then when the tracking says "we're done" we might barely be 1/4 done, or if you use the 40,000 lines then when you reach 10,000 and you're done the tracking will say "we're not done yet".

Then you also have the problem where you don't know exactly how many lines it'll take when you first start, and features will be added or taken away later which could increase or decrease the line estimate.

I'd rather track progress by a list of feature goals rather than lines of code.
3 comments or Leave a comment