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

重复和近似重复的自承技术债务评论初探

A First Look at Duplicate and Near-duplicate Self-admitted Technical Debt Comments

Jerin Yasmin, Mohammad Sadegh Sheikhaei, Yuan Tian

摘要:

自我承认的技术债务(SATD)是指由开发人员故意引入并明确记录在代码注释或其他软件工件中的技术债务(例如,问题报告)来注释开发人员在软件开发过程中做出的次优决策。在这项工作中,我们首先研究了五个流行的Apache OSS项目中重复和近似重复的SATD注释的存在和特征,即,JSPWiki、Hacker、Jackrabbit、Archiva和SystemML。我们设计了一种方法来自动识别组的重复和接近重复的SATD评论,并跟踪其演变的软件系统中挖掘的提交历史的软件项目。利用所提出的方法,我们从目标项目中识别出3,520条重复和近似重复的SATD评论,这些评论属于1,141组。我们手动分析了1,505条SATD评论的内容和上下文(每个项目抽取100组),并确定它们是否注释了相同的根本原因。我们还调查了重复的SATD注释是否存在于代码克隆中,它们是否共存于同一个文件中,以及它们是否同时被引入和删除。我们的初步研究揭示了几个令人惊讶的发现,这将有助于未来的研究,旨在改善重复SATD评论的管理。例如,在常规代码克隆中,只有48.5%的具有相同根本原因的重复SATD注释组存在,并且只有33.9%的重复SATD注释对在同一提交中引入。

英文摘要:

Self-admitted technical debt (SATD) refers to technical debt that is intentionally introduced by developers and explicitly documented in code comments or other software artifacts (e.g., issue reports) to annotate sub-optimal decisions made by developers in the software development process. In this work, we take the first look at the existence and characteristics of duplicate and near-duplicate SATD comments in five popular Apache OSS projects, i.e., JSPWiki, Helix, Jackrabbit, Archiva, and SystemML. We design a method to automatically identify groups of duplicate and near-duplicate SATD comments and track their evolution in the software system by mining the commit history of a software project. Leveraging the proposed method, we identified 3,520 duplicate and near-duplicate SATD comments from the target projects, which belong to 1,141 groups. We manually analyze the content and context of a sample of 1,505 SATD comments (by sampling 100 groups for each project) and identify if they annotate the same root cause. We also investigate whether duplicate SATD comments exist in code clones, whether they co-exist in the same file, and whether they are introduced and removed simultaneously. Our preliminary study reveals several surprising findings that would shed light on future studies aiming to improve the management of duplicate SATD comments. For instance, only 48.5% duplicate SATD comment groups with the same root cause exist in regular code clones, and only 33.9% of the duplicate SATD comment pairs are introduced in the same commit.

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

↑