永发信息网

1000行代码出现多少个bug在合理范围内

答案:3  悬赏:70  手机版
解决时间 2021-02-23 21:42
1000行代码出现多少个bug在合理范围内
最佳答案
正常情况下, 如果加上你修复的BUG,你犯的错误,差不多,10行代码至少有一个BUG。所1000行代码, 至少要有100个BUG。
但是大部分BUG都被消除在编码阶段,剩下的一大半消除在单元测试阶段。然后更少的在集成测试,以及测试人员测试中发现。最后只有几个type error可能会隐藏很久。
如果按单元测试阶段计算,100行代码有4-5个BUG是正常的,但是测试人员发现的BUG,1千行代码, 可能1-2个BUG。真正的大部分BUG,在程序员手里已经解决了。
全部回答
1000行代码不应该出bug
微软的程序比例是每千行10-20个bug。 (a) industry average: "about 15 - 50 errors per 1000 lines of delivered code." he further says this is usually representative of code that has some level of structured programming behind it, but probably includes a mix of coding techniques. (b) microsoft applications: "about 10 - 20 defects per 1000 lines of code during in-house testing, and 0.5 defect per kloc (kloc is called as 1000 lines of code) in released product (moore 1992)." he attributes this to a combination of code-reading techniques and independent testing (discussed further in another chapter of his book). (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."如果解决了您的问题请采纳! 如果未解决请继续追问
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
据《广州日报》报道:某小学老师布置作文时,竟
老婆很喜欢骂人,怎么办。
逍遥王麻辣香锅地址在哪,我要去那里办事
网友朋友有没有小妙招告诉我白皮鞋前尖ti的都
求几首类似the mass的歌,震撼些我剪辑视频用
塑钢窗的主要特点分析和主要技术参数?
店里想弄个二维码支付,就是二维码打印在张纸
假如一个性状总是从父亲直接传给儿子,由儿子
辞职后社保转移也包括失业保险吗
亿家利便利圣塘店这个地址在什么地方,我要处
华为p6手机桌面壁纸能不能设置一页一张完整的
诚信之家装饰设计装潢工程有限公司这个地址在
怎么让群二维码一直有效?微信的。
九九归一?0.1583461583461......0.8461538461
1999小学老师多少钱一个月
推荐资讯
家居庭院西边建棚风水
7天连锁酒店北京传媒大学南门店在什么地方啊
请问This is the ship (in which) we crossed
安阳中专学校都有哪些
梦幻群侠传1黑山老妖怎么打?
600公斤等于多少升油
我爸爸有脑梗和胰腺炎 为什么一吃饭老吐
天津塘沽新港旅游
动脉血是由主干流向分支的吗?
德系09款奔驰gl450的油门怎么调的
比利时漫画家埃尔热于1929年所著的《丁丁在苏
下列关于陆地水体补给关系的叙述,不正确的是
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?