4 ms·
> Is LOC really a significant measurement? It is. Number of bugs per line of code is nearly the same across languages. So the best way to reduce bugs is to red
by dmitriid 8y ago
> Is LOC really a significant measurement?
It is. Number of bugs per line of code is nearly the same across languages. So the best way to reduce bugs is to reduce LoC
- zihotki 8y ago1-line Perl programs are looking at this comment with approval.
- m45t3r 8y ago> 1-line Perl programs are looking at this comment with approval. 1-line Perl programs are far from being representative of real systems and generally only exists for code golfing.
- kurtisc 8y ago>Number of bugs per line of code is nearly the same across languages. Has this been studied?
- dmitriid 8y agoI can't give a more complete answer than this SO answer: https://softwareengineering.stackexchange.com/a/185684 https://softwareengineering.stackexchange.com/a/185684 :)
- kurtisc 8y ago15-50 being quite a big range and the 2004 publication date of the book (the comments hint at the reference being earlier) make me reluctant to take it at face value without looking into it in more depth, especially regarding new technology like TS, Rust, or enterprise Haskell.
- dmitriid 8y agoRead it as 1.5-5% of lines contain bugs. In the original post AirBnB said 38% of their bugs could be prevented by static typing. This would bring this to 0.9-3%. Not insignificant, but LoC is still more important.
- okal 8y ago[Citation Needed]?
- dmitriid 8y agoI can't give a more complete answer than this SO answer: https://softwareengineering.stackexchange.com/a/185684 https://softwareengineering.stackexchange.com/a/185684 :)