重构债务:神话还是现实?技术债务与重构关系的探索性研究
软件工程
2022-03-14 v1
摘要
为了满足项目时间线或预算限制,开发人员有意偏离编写最优代码而改为编写可行代码,这被称为承担技术债务(Technical Debt, TD)。此外,作为规划其修正的一部分,开发人员在代码中以注释形式记录这些缺陷(即自承认技术债务或 SATD)。作为提升源代码质量的一种手段,开发人员经常对其代码库应用一系列重构操作。在本研究中,我们通过考察 76 个开源 Java 系统中代码里 SATD 移除的情况,探索开发人员通过重构操作偿还该债务的行为。我们的发现表明,技术债务的偿通常发生在重构活动期间,且开发人员出于特定原因重构其代码以移除技术债务。我们期望我们的发现能够支持供应商提供工具,以更好地支持开发人员自动偿还技术债务。
关键词
引用
@article{arxiv.2203.05660,
title = {Refactoring Debt: Myth or Reality? An Exploratory Study on the Relationship Between Technical Debt and Refactoring},
author = {Anthony Peruma and Eman Abdullah AlOmar and Christian D. Newman and Mohamed Wiem Mkaouer and Ali Ouni},
journal= {arXiv preprint arXiv:2203.05660},
year = {2022}
}
备注
This study has been accepted for publication at: The 19th International Conference on Mining Software Repositories (MSR 2022)