Is duplicate code more frequently modified than non-duplicate code in software evolution?: an empirical study on open source software

  • Authors:
  • Keisuke Hotta;Yukiko Sano;Yoshiki Higo;Shinji Kusumoto

  • Affiliations:
  • Osaka University;Osaka University;Osaka University;Osaka University

  • Venue:
  • Proceedings of the Joint ERCIM Workshop on Software Evolution (EVOL) and International Workshop on Principles of Software Evolution (IWPSE)
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Various kinds of research efforts have been performed on the basis that the presence of duplicate code has a negative impact on software evolution. A typical example is that, if we modify a code fragment that has been duplicated to other code fragments, it is necessary to consider whether the other code fragments have to be modified simultaneously or not. In this research, in order to investigate how much the presence of duplicate code is related to software evolution, we defined a new indicator, modification frequency. The indicator is a quantitative measure, and it allows us to objectively compare the maintainability of duplicate code and non-duplicate code. We conducted an experiment on 15 open source software systems, and the result showed that the presence of duplicate code does not have a negative impact on software evolution.