HackerPapers

arXiv:1701.05472cs.SE

Do Code Clones Matter?

Elmar Juergens, Florian Deissenboeck, Benjamin Hummel, Stefan Wagner

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

Code cloning is not only assumed to inflate maintenance costs but also considered defect-prone as inconsistent changes to code duplicates can lead to unexpected behavior. Consequently, the identification of duplicated code, clone detection, has been a very active area of research in recent years. Up to now, however, no substantial investigation of the consequences of code cloning on program correctness has been carried out. To remedy this shortcoming, this paper presents the results of a large-scale case study that was undertaken to find out if inconsistent changes to cloned code can indicate faults. For the analyzed commercial and open source systems we not only found that inconsistent changes to clones are very frequent but also identified a significant number of faults induced by such changes. The clone detection tool used in the case study implements a novel algorithm for the detection of inconsistent clones. It is available as open source to enable other researchers to use it as basis for further investigations.

arXiv comments
12 pages, 7 figures in Proc. 31st International Conference on Software Engineering (ICSE '09). IEEE, 2009
Journal reference
Proc. 31st International Conference on Software Engineering (ICSE '09). IEEE, 2009
DOI
doi:10.1109/ICSE.2009.5070547
Subjects
cs.SESoftware Engineering

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from Jan 2017 to Jan 2017.

Comments linking this paper, per year.

Discussed in comments1 thread

    • > This I just have to disagree with. I think it's valuable for students to learn how to implement quick sort. I'd rather the students kow how to implement large software architectures, keep line counts down, abstract problems correctly, and learn how things are done in the real…

      gravypodView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.