arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.13407cs.SE
收藏

递增而非递减:调查高可维护性代码的回报

Increasing, not Diminishing: Investigating the Returns of Highly Maintainable Code

Markus Borg, Ilyana Pruvost, Enys Mones, Adam Tornhill

AI总结:

本研究结合两个公开数据集并通过回归分析构建价值创造模型,发现代码质量与缺陷数、实现时间的关联呈区间差异和极端非线性,高可维护性代码具有放大的投资回报。

摘要:

理解并有效管理技术债务(TD)仍然是软件工程中的一项关键挑战。尽管已经发表了许多关于代码级 TD 的研究,但很少有研究阐明低质量源代码的业务影响。在本研究中,我们结合两个公开可用的数据集,研究代码质量与缺陷数量和实现时间之间的关联。我们引入了一个源自回归分析的价值创造模型,以探索相对于基线的相对变化。我们的结果表明,这些关联在不同的代码质量区间内有所不同。此外,价值模型表明在代码质量谱的极端处存在强烈的非线性。最重要的是,该模型表明在高端区间投资回报会放大。我们在“破窗”理论的背景下讨论这些发现,并建议组织勤勉地防止在高变动文件中引入代码异味。最后,我们认为价值创造模型可用于发起关于重构工作投资回报的讨论。

英文摘要:

Understanding and effectively managing Technical Debt (TD) remains a vital challenge in software engineering. While many studies on code-level TD have been published, few illustrate the business impact of low-quality source code. In this study, we combine two publicly available datasets to study the association between code quality on the one hand, and defect count and implementation time on the other hand. We introduce a value-creation model, derived from regression analyses, to explore relative changes from a baseline. Our results show that the associations vary across different intervals of code quality. Furthermore, the value model suggests strong non-linearities at the extremes of the code quality spectrum. Most importantly, the model suggests amplified returns on investment in the upper end. We discuss the findings within the context of the "broken windows" theory and recommend organizations to diligently prevent the introduction of code smells in files with high churn. Finally, we argue that the value-creation model can be used to initiate discussions regarding the return on investment in refactoring efforts.

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

↑