arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2203.04374cs.SE
收藏

Code Red:代码质量的商业影响--对39个专有产品代码库的定量研究

Code Red: The Business Impact of Code Quality -- A Quantitative Study of 39 Proprietary Production Codebases

Adam Tornhill, Markus Borg

摘要:

代码质量仍然是一个抽象的概念,无法在业务层面上获得牵引力。因此,软件公司一直在用代码质量换取上市时间和新功能。由此产生的技术债务估计浪费了开发人员高达42%的时间。与此同时,全球软件开发人员短缺,这意味着开发人员的生产力是软件业务的关键。我们的总体使命是使代码质量成为一个业务问题,而不仅仅是一个技术方面。我们的第一个目标是了解代码质量如何影响1)报告的缺陷数量,2)解决问题的时间,以及3)及时解决问题的可预测性。我们使用CodeScene工具分析了来自不同领域的39个专有生产代码库,这些代码库基于源代码分析,版本控制挖掘和Jira的问题信息。通过分析30,737个文件中的活动,我们发现低质量代码包含的缺陷是高质量代码的15倍。此外,解决低质量代码中的问题平均需要124%的开发时间。最后,我们报告说,低质量代码的问题解决方案涉及更高的不确定性,表现为最大周期时间长9倍。这项研究提供的证据表明,代码质量不能被视为一个技术问题。缺陷减少了15倍,开发速度提高了两倍,问题解决时间大大提高了可预测性,高质量代码的业务优势应该是显而易见的。

英文摘要:

Code quality remains an abstract concept that fails to get traction at the business level. Consequently, software companies keep trading code quality for time-to-market and new features. The resulting technical debt is estimated to waste up to 42% of developers' time. At the same time, there is a global shortage of software developers, meaning that developer productivity is key to software businesses. Our overall mission is to make code quality a business concern, not just a technical aspect. Our first goal is to understand how code quality impacts 1) the number of reported defects, 2) the time to resolve issues, and 3) the predictability of resolving issues on time. We analyze 39 proprietary production codebases from a variety of domains using the CodeScene tool based on a combination of source code analysis, version-control mining, and issue information from Jira. By analyzing activity in 30,737 files, we find that low quality code contains 15 times more defects than high quality code. Furthermore, resolving issues in low quality code takes on average 124% more time in development. Finally, we report that issue resolutions in low quality code involve higher uncertainty manifested as 9 times longer maximum cycle times. This study provides evidence that code quality cannot be dismissed as a technical concern. With 15 times fewer defects, twice the development speed, and substantially more predictable issue resolution times, the business advantage of high quality code should be unmistakably clear.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑