News for hackers. Stuff that matters.
Re:Why C++ Is Not "Back" by sp332 on Sunday December 02, 2012 @10:14AM (#4861389)
The papers I've seen show that bugs per line of code go down as class size increases, until about 200 lines of code. But since the code is larger, the total number of bugs goes up in larger classes compared to smaller ones (as you would expect). This might be used as an argument against refactoring code into too-small classes, but I'm pretty sure total code length correlates with total bugs. http://news.ycombinator.com/item?id=3037293

Edited to remove dumb generality.

Re:Why C++ Is Not "Back" by seanmcdirmid on Sunday December 02, 2012 @10:30AM (#4861440)
> I'm pretty sure the only way to minimize bugs is to write less code.

Please think about what you are saying. Such an overly broad statement is so easy to shoot down, I'm sure there are plenty of other ways of minimizing bugs. NASA and Boeing have this figured out, for example, although it is incredibly expensive (formal verification, independent redundancy, extensive testing, static analysis, etc...).