论文标题
重构债务:神话还是现实?关于技术债务与重构之间关系的探索性研究
Refactoring Debt: Myth or Reality? An Exploratory Study on the Relationship Between Technical Debt and Refactoring
论文作者
论文摘要
为了满足项目时间表或预算限制,开发人员故意偏离编写最佳代码到可行的代码,即所谓的技术债务(TD)。此外,作为计划更正的一部分,开发人员将这些缺陷记录为《守则》中的评论(即,自我接纳的技术债务或SATD)。作为提高源代码质量的一种手段,开发人员经常将一系列重构操作应用于其代码库。在这项研究中,我们通过在76个开源Java Systems中检查SATD删除的事件来探索开发人员通过重构运营来偿还这笔债务的开发人员。我们的发现表明,TD付款通常是通过重构活动而发生的,而开发人员由于特定原因将其代码重构以删除TD。我们设想支持供应商提供工具,以更好地支持开发人员自动偿还技术债务。
To meet project timelines or budget constraints, developers intentionally deviate from writing optimal code to feasible code in what is known as incurring Technical Debt (TD). Furthermore, as part of planning their correction, developers document these deficiencies as comments in the code (i.e., self-admitted technical debt or SATD). As a means of improving source code quality, developers often apply a series of refactoring operations to their codebase. In this study, we explore developers repaying this debt through refactoring operations by examining occurrences of SATD removal in the code of 76 open-source Java systems. Our findings show that TD payment usually occurs with refactoring activities and developers refactor their code to remove TD for specific reasons. We envision our findings supporting vendors in providing tools to better support developers in the automatic repayment of technical debt.