arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2209.01549cs.SE
收藏

破窗理论适用于技术债务

The Broken Windows Theory Applies to Technical Debt

William Levén, Hampus Broman, Terese Besker, Richard Torkar

AI总结:

本研究通过受控实验和混合方法,实证验证了破窗理论在软件工程中的适用性,发现高技术债务密度会显著增加开发者引入新债务的倾向。

摘要:

背景:术语技术债务(TD)描述了次优解决方案的集合,这些解决方案阻碍了系统的演进和维护。有人声称,破窗理论(BWT),一个源自犯罪学的概念,也适用于软件开发项目。该理论指出,先前犯罪迹象(如破窗)的存在会增加进一步犯罪活动的可能性;TD可被视为软件系统的破窗。\n 目标:实证研究系统TD密度与开发者在扩展该系统时引入新TD倾向之间的因果关系。\n 方法:本研究采用混合方法研究策略,包括受控实验、伴随调查和后续访谈。实验共有29名不同经验水平的开发者,在具有高或低TD密度的现有系统中完成系统扩展任务。结果:分析揭示了TD水平对受试者重新实现(而非重用)功能、选择非描述性变量名以及引入软件工具SonarQube识别的其他代码坏味的倾向有显著影响,所有结果均具有至少95%的可信区间。\n 结论:三个独立的显著结果以及一个验证性定性结果共同构成了BWT在软件工程环境中存在的实质性证据。本研究发现,现有TD可能对开发者在开发过程中引入各种类型新TD的倾向产生重大影响。

英文摘要:

Context: The term technical debt (TD) describes the aggregation of sub-optimal solutions that serve to impede the evolution and maintenance of a system. Some claim that the broken windows theory (BWT), a concept borrowed from criminology, also applies to software development projects. The theory states that the presence of indications of previous crime (such as a broken window) will increase the likelihood of further criminal activity; TD could be considered the broken windows of software systems. Objective: To empirically investigate the causal relationship between the TD density of a system and the propensity of developers to introduce new TD during the extension of that system. Method: The study used a mixed-methods research strategy consisting of a controlled experiment with an accompanying survey and follow-up interviews. The experiment had a total of 29 developers of varying experience levels completing system extension tasks in already existing systems with high or low TD density. Results: The analysis revealed significant effects of TD level on the subjects' tendency to re-implement (rather than reuse) functionality, choose non-descriptive variable names, and introduce other code smells identified by the software tool SonarQube, all with at least 95% credible intervals. Conclusions: Three separate significant results along with a validating qualitative result combine to form substantial evidence of the BWT's existence in software engineering contexts. This study finds that existing TD can have a major impact on developers propensity to introduce new TD of various types during development.

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

↑