English

Refactoring Debt: Myth or Reality? An Exploratory Study on the Relationship Between Technical Debt and Refactoring

Software Engineering 2022-03-14 v1

Abstract

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.

Keywords

Cite

@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}
}

Comments

This study has been accepted for publication at: The 19th International Conference on Mining Software Repositories (MSR 2022)

R2 v1 2026-06-24T10:09:23.077Z