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

SATD与其他软件开发活动关系的探索性研究

An Exploratory Study of the Relationship between SATD and Other Software Development Activities

Shima Esfandiari, Ashkan Sami

AI总结:

本文通过分析77个开源Java项目,研究SATD的添加与移除同重构、缺陷修复等开发活动的共现关系,发现SATD移除与重构在95%的项目中同时发生,并识别出三类与SATD关联更频繁的重构操作。

摘要:

技术债务是一个常见问题,当短期收益被优先于长期成本时就会出现,导致代码质量下降。自我承认技术债务(SATD)是一种特定类型的技术债务,涉及在代码中记录文档以提醒开发者其债务。以往研究已经探索了SATD的各个方面,包括检测方法、分布及其对软件质量的影响。为了更好地理解SATD,一种理解技术是考察它与其他活动(如重构和缺陷修复)的共现情况。本研究调查了SATD的移除和添加与重构、缺陷修复、添加新功能以及测试等活动之间的关系。为此,我们分析了77个开源Java项目,使用内联注释中TODO/FIXME/XXX的移除或添加作为SATD的指标。我们通过卡方检验和比值比评估考察了每个项目中SATD与每种活动的共现情况。我们的结果表明,在95%的项目中SATD移除与重构同时发生,而在89%的项目中SATD添加与重构同时发生。此外,我们发现三种类型的重构——“移动类”、“移除方法”和“移动属性”——在存在SATD的情况下发生得更频繁。然而,它们在含有和不含SATD的项目中的分布是相似的。

英文摘要:

Technical Debt is a common issue that arises when short-term gains are prioritized over long-term costs, leading to a degradation in the quality of the code. Self-Admitted Technical Debt (SATD) is a specific type of Technical Debt that involves documenting code to remind developers of its debt. Previous research has explored various aspects of SATD, including detection methods, distribution, and its impact on software quality. To better understand SATD, one comprehension technique is to examine its co-occurrence with other activities, such as refactoring and bug fixing. This study investigates the relationship between removing and adding SATD and activities such as refactoring, bug fixing, adding new features, and testing. To do so, we analyzed 77 open-source Java projects using TODO/FIXME/XXX removal or addition in inline comments as indicators of SATD. We examined the co-occurrence of SATD with each activity in each project through chi-square and odds ratio evaluations. Our results show that SATD removal occurs simultaneously with refactoring in 95% of projects, while its addition occurs in 89% of projects. Furthermore, we found that three types of refactoring - "move class", "remove method", and "move attribute" - occur more frequently in the presence of SATD. However, their distribution is similar in projects with and without SATD.

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

↑