Ask HN: 0 defects per 500,000 lines of code
(c) "Harlan Mills pioneered 'cleanroom development', a technique that has been able to achieve rates as low as 3 defects per 1000 lines of code during in-house testing and 0.1 defect per 1000 lines of code in released product (Cobb and Mills 1990). A few projects - for example, the space-shuttle software - have achieved a level of 0 defects in 500,000 lines of code using a system of format development methods, peer reviews, and statistical testing."
(from: http://amartester.blogspot.nl/2007/04/bugs-per-lines-of-code.html)
Now, I've read about NASA's rigorous software development process before and I can imagine their software to be of the highest quality but I just cannot believe the above-mentioned claim.
Does anyone have further information on how this is possible or can perhaps put this quote into perspective?
4 comments
[ 3.1 ms ] story [ 22.8 ms ] threadBasically, if you're willing to pay for (nearly) bug free code then you can get it. Most people, however, aren't willing to pay that much.
This is a well published topic, and since you gave a quaternary source, I assumed you knew very little about the topic and didn't even know the right keywords for search.
If you want to know more, see "The Legacy of Space Shuttle Flight Software" at http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/2011001... . There are more process details at http://www.nap.edu/openbook.php?record_id=2222&page=39 and a detailed presentation of the historical development of the system at http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/2010002... .
The Space Shuttle Defect Prevention Process is based on but not limited to the IBM Defect Prevention Process (DPP). Some of the papers include "Developing error-free software" (Aerospace and Electronic Systems Magazine, IEEE (Volume:3 , Issue: 11) ), and "Journey to a mature software process", IBM Systems Journal (Volume:33 , Issue: 1). The IBM DPP is described more in http://flylib.com/books/en/1.428.1.26/1/ and http://jeffsutherland.com/Mays1990DefectPreventionIBMSystems... .
How many corporations would allow programmers a productivity of 260 lines of (correct) code per year?