Journal article Open Access

Can Clean New Code reduce Technical Debt Density

George Digkas; Alexander Chatzigeorgiou; Paris Avgeriou

MARC21 XML Export

<?xml version='1.0' encoding='UTF-8'?>
<record xmlns="">
  <datafield tag="540" ind1=" " ind2=" ">
    <subfield code="u"></subfield>
    <subfield code="a">Creative Commons Attribution 4.0 International</subfield>
  <datafield tag="260" ind1=" " ind2=" ">
    <subfield code="c">2020-10-20</subfield>
  <controlfield tag="005">20210402122717.0</controlfield>
  <controlfield tag="001">4399032</controlfield>
  <datafield tag="909" ind1="C" ind2="O">
    <subfield code="p">openaire</subfield>
    <subfield code="o"></subfield>
  <datafield tag="520" ind1=" " ind2=" ">
    <subfield code="a">&lt;p&gt;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 &amp;ldquo;cleanness&amp;rdquo; 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 &amp;ldquo;clean&amp;rdquo; (or at least &amp;ldquo;cleaner&amp;rdquo;) 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.&lt;/p&gt;</subfield>
  <datafield tag="700" ind1=" " ind2=" ">
    <subfield code="u">Applied Informatics, University of Macedonia, 68999 Thessaloniki, Thessaloniki, Greec</subfield>
    <subfield code="a">Alexander Chatzigeorgiou</subfield>
  <datafield tag="700" ind1=" " ind2=" ">
    <subfield code="u">Department of Mathematics and Computing Science, University of Groningen, Groningen, groningen, Netherland</subfield>
    <subfield code="a">Paris Avgeriou</subfield>
  <datafield tag="856" ind1="4" ind2=" ">
    <subfield code="s">2635227</subfield>
    <subfield code="z">md5:b25220ae2bf7422cf14e923b659f087c</subfield>
    <subfield code="u"></subfield>
  <datafield tag="542" ind1=" " ind2=" ">
    <subfield code="l">open</subfield>
  <datafield tag="980" ind1=" " ind2=" ">
    <subfield code="a">publication</subfield>
    <subfield code="b">article</subfield>
  <datafield tag="100" ind1=" " ind2=" ">
    <subfield code="u">Institute of Mathematics and Computer Science, University of Groningen, 3647 Groningen, Groningen, Netherlands</subfield>
    <subfield code="a">George Digkas</subfield>
  <datafield tag="024" ind1=" " ind2=" ">
    <subfield code="a">10.1109/TSE.2020.3032557</subfield>
    <subfield code="2">doi</subfield>
  <datafield tag="245" ind1=" " ind2=" ">
    <subfield code="a">Can Clean New Code reduce Technical Debt Density</subfield>
  <datafield tag="536" ind1=" " ind2=" ">
    <subfield code="c">780572</subfield>
    <subfield code="a">Software Development toolKit for Energy optimization and technical Debt elimination</subfield>
  <datafield tag="536" ind1=" " ind2=" ">
    <subfield code="c">801015</subfield>
    <subfield code="a">Enhancing Programmability and boosting Performance Portability for Exascale Computing Systems</subfield>
  <datafield tag="650" ind1="1" ind2="7">
    <subfield code="a">cc-by</subfield>
    <subfield code="2"></subfield>
Views 101
Downloads 43
Data volume 113.3 MB
Unique views 90
Unique downloads 43


Cite as