Essays
Odds and ends from around the web
November 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Oct   Dec
 



Subscribe to "Essays" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

"Data! data! data!" he cried impatiently. "I can't make bricks without clay."
— Sherlock Holmes to Dr. Watson in "The Adventure of the Copper Beeches" by Arthur Conan Doyle. 


"I like deadlines," cartoonist Scott Adams once said. "I especially like the whooshing sound they make as they fly by."
"There is nothing like that feeling of spending days and days banging your head against a wall trying to solve a programming problem then suddenly finding that one tiny obscure and seemingly unrelated piece of the puzzle that unlocks the solution. Oh yeah!"

- Chris Maunder, CodeProject Newsletter 28 Jan 2002
"Management at eSnipe, which is me, is also feeling the pain of the 2002 bear market. So rather than pout about it, I bought some stuff on eBay that I really didn’t need, but made me feel better."

- Tom Campbell, president of eSnipe

 



 

 
 Monday, November 18, 2002
  9:33:08 PM  

Code counting metrics should give a big bonus for negative lines of code - they're vastly more effective than the other kind.

However you look at it, each line of code you write adds at least one more potential bug. Excess code is bad. Simple is good. Reuse is bliss.

Sometimes I've managed to drop hundreds of lines of code in a day - especially when debugging and troubleshooting other people's code. Obviously, someone "achieved" ten times the "productivity" by pasting the same code ten times instead of using a subroutine. Over time, though, you end up with one fix in four of those copies, and another in three ...

Even with new code, you can often generalize the existing code to get improved functionality from fewer lines.

Finally, one of the smartest things a programmer can do is to use other people's components. Sure, you *could* write your own XML parser, and "produce" thousands of lines of code --- and thousands of bugs (and lines of code for patches) etc.

We all know that, but I've never had much luck convincing management that less is better. After all, quality is hard to measure, but lines of code is easy. The same managers who like to track the number of hours spent on each task tend to like counting code. ["What do you mean, you spent three days working on it and you only wrote two lines of code?"].

By the way, I think lines of code is a meaningless concept to start with - how does one line of assembler code compare to one line of APL?


Click here to visit the Radio UserLand website. © Copyright 2002 Eric Hartwell.
Last update: 11/21/2002; 9:22:26 PM.
This theme is based on the SoundWaves (blue) Manila theme.