網(wǎng)站制作NEWS
1000行代碼出現(xiàn)多少個bug在合理范圍內(nèi)
微軟的程序比例是每千行10-20個bug。
(a)IndustryAverage:"about15-50errorsper1000linesofdeliveredcode."Hefurthersaysthisisusuallyrepresentativeofcodethathassome
levelofstructuredprogrammingbehindit,butprobablyincludesamixof
codingtechniques.
(b)MicrosoftApplications:"about10-20defectsper1000linesofcode
duringin-housetesting,and0.5defectperKLOC(KLOCISCALLEDAS1000linesofcode)inreleased
product(Moore1992)."Heattributesthistoacombinationofcode-reading
techniquesandindependenttesting(discussedfurtherinanotherchapterof
hisbook).
(c)"HarlanMillspioneered'cleanroomdevelopment',atechniquethathas
beenabletoachieveratesaslowas3defectsper1000linesofcodeduring
in-housetestingand0.1defectper1000linesofcodeinreleasedproduct
(CobbandMills1990).Afewprojects-forexample,thespace-shuttle
software-haveachievedalevelof0defectsin500,000linesofcodeusing
asystemofformatdevelopmentmethods,peerreviews,andstatistical
testing."
如果解決了您的問題請采納!
如果未解決請繼續(xù)追問
多重隨機標簽