Please use this identifier to cite or link to this item: https://ruomo.lib.uom.gr/handle/7000/805
Title: Can Clean New Code reduce Technical Debt Density?
Authors: Digkas, George
Chatzigeorgiou, Alexander N.
Ampatzoglou, Apostolos
Avgeriou, Paris C.
Type: Article
Subjects: FRASCATI::Natural sciences::Computer and information sciences
Keywords: technical debt
refactoring
clean code
case study
Issue Date: 20-Oct-2020
Source: IEEE Transactions on Software Engineering
First Page: 1
Last Page: 1
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 data, we have performed a large-scale case study on twenty-seven open-source software projects by the Apache Software Foundation, analyzing 66,661 classes and 56,890 commits. The results suggest that writing "clean" (or at least "cleaner") new code can be an efficient strategy for reducing Technical Debt Density, and thus preventing software decay over time. The findings also suggest that projects adopting an explicit policy for quality improvement, e.g. through discussions on code quality in board meetings, are associated with a higher frequency of cleaner new code commits. Therefore, we champion the establishment of processes that monitor the density of Technical Debt of new code to control the accumulation of Technical Debt in a software system.
URI: https://doi.org/10.1109/TSE.2020.3032557
https://ruomo.lib.uom.gr/handle/7000/805
ISSN: 0098-5589
1939-3520
2326-3881
Other Identifiers: 10.1109/TSE.2020.3032557
Appears in Collections:Department of Applied Informatics

Files in This Item:
File Description SizeFormat 
TSE-2020-06-0265.R1.pdf2,43 MBAdobe PDFView/Open


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.