網(wǎng)站制作NEWS
1000行代碼出現(xiàn)多少個(gè)bug在合理范圍內(nèi)
微軟的程序比例是每千行10-20個(gè)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."
如果解決了您的問(wèn)題請(qǐng)采納!
如果未解決請(qǐng)繼續(xù)追問(wèn)
多重隨機(jī)標(biāo)簽