On the Interplay of Smells Large Class, Complex Class and Duplicate Code
Elder Vicente de Paulo Sobrinho, Marcelo de Almeida Maia

TL;DR
This paper investigates the relationships among code smells Large Class, Complex Class, and Duplicate Code, revealing patterns that can enhance detection and refactoring strategies through empirical analysis of open source projects.
Contribution
It provides the first quantification of the inter-relationship between these code smells, highlighting occurrence patterns that inform better detection and refactoring approaches.
Findings
Complex classes often have more duplicate code.
Large Class and Complex Class co-occurrence correlates with higher clone prevalence.
Patterns can improve detection tools and refactoring strategies.
Abstract
Bad smells have been defined to describe potential problems in code, possibly pointing out refactoring opportunities. Several empirical studies have highlighted that smells have a negative impact on comprehension and maintainability. Consequently, several approaches have been proposed to detect and restructure them. However, studies on the inter-relationship of occurrence of different types of smells in source code are still lacking, especially those focused on the quantification of this inter-relationship. In this work, we aim at understand and quantify the possible the inter-relation of smells Large Class - LC, Complex Class - CC and Duplicate Code - DC. In particular, we investigate patterns of LC and CC regarding the presence or absence of duplicate code. We conduct a quantitative study on five open source projects, and also a qualitative analysis to measure and understand the…
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.
