Can Clean New Code reduce Technical Debt Density?
George Digkas, Alexander Chatzigeorgiou, Apostolos Ampatzoglou, Paris, Avgeriou

TL;DR
This study investigates how writing cleaner new code impacts the reduction of technical debt density in software systems, emphasizing the role of code quality practices and code change types through a large-scale case study.
Contribution
It provides empirical evidence that cleaner new code can effectively reduce technical debt density and highlights the importance of explicit quality policies in open-source projects.
Findings
Cleaner new code correlates with lower technical debt density.
Explicit quality policies lead to more frequent cleaner code commits.
Additions, modifications, and deletions differently influence technical debt evolution.
Abstract
While technical debt grows in absolute numbers as software systems evolve over time, the density of technical debt (technical debt divided by lines of code) is reduced in some cases. This can be explained by either the application of refactorings or the development of new artifacts with limited Technical Debt. In this paper we explore the second explanation, by investigating the relation between the amount of Technical Debt in new code and the evolution of Technical Debt in the system. To this end, we compare the Technical Debt Density of new code with existing code, and we investigate which of the three major types of code changes (additions, deletions and modifications) is primarily responsible for changes in the evolution of Technical Debt density. Furthermore, we study whether there is a relation between code quality practices and the 'cleanness' of new code. To obtain the required…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
