breaking news!

For general rambling.
Post Reply
Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

breaking news!

Post by Jonathan »

research indicates that the number of bugs scales with the number of lines of code.

Peijen
Minion to the Exalted Pooh-Bah
Posts: 2790
Joined: Fri Jul 18, 2003 2:28 pm
Location: Irvine, CA

Post by Peijen »

none sense, I ploted the number of bugs in my code vs number of lines of code and it's not linear. unless they are using log scale ... :oops:

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

I'm not sure what you are saying. Are you saying that for all the code you've ever written, you kept track of the number of bugs and the number of lines? Or are you saying that the number of bugs != the number of lines? Because I'll grant you that second one. But if you design something with more lines of code, it's going to have proportionally more bugs. That's what I was saying.

VLSmooth
Tenth Dan Procrastinator
Posts: 3055
Joined: Fri Jul 18, 2003 3:02 am
Location: Varies
Contact:

Post by VLSmooth »

Here's another obvious, yet breaking news tidbit. Bugs exhibit locality (the technical term is clustering). Where one finds one bug, there are likely to be more nearby. Yes, this was a primary point in an AT&T paper, one of the ~80 papers I had to read in dependable embedded systems.

However, after hearing/experiencing some software engineering horror stories, I believe even the obvious stuff needs to be hammered in.

Peijen
Minion to the Exalted Pooh-Bah
Posts: 2790
Joined: Fri Jul 18, 2003 2:28 pm
Location: Irvine, CA

Post by Peijen »

Dwindlehop wrote:I'm not sure what you are saying. Are you saying that for all the code you've ever written, you kept track of the number of bugs and the number of lines? Or are you saying that the number of bugs != the number of lines? Because I'll grant you that second one. But if you design something with more lines of code, it's going to have proportionally more bugs. That's what I was saying.
I was trying to make a joke about my bug/loc ratio is exponential

Dave
Tenth Dan Procrastinator
Posts: 3483
Joined: Fri Jul 18, 2003 3:40 pm

Post by Dave »

my bugs/line of code is linear
It takes 43 muscles to frown and 17 to smile, but it doesn't take any to just sit there with a dumb look on your face.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

Yeah, I kinda thought it was something like that, what with the smilie. I was locked in to thinking (# bugs) < (# lines), though, and that's what threw me.

VLSmooth
Tenth Dan Procrastinator
Posts: 3055
Joined: Fri Jul 18, 2003 3:02 am
Location: Varies
Contact:

Post by VLSmooth »

Buggy code is evil, but not as evil as bad requirements...

Post Reply