2020 · 28 citations · 19 references
ComputingComputer ScienceQuality EngineeringQuality ImprovementSoftware EngineeringSoftware ArchitectureSoftware DesignSoftware MaintenanceSoftware RefactoringCode Smell DetectionCode SmellsInternal Quality AttributesProgram ComprehensionRefactoringRefactoring Patterns
Program refactoring consists of code changes applied to improve the internal structure of a program and, as a consequence, its comprehensibility. Recent studies indicate that developers often perform composite refactorings, i.e., a set of two or more interrelated single refactorings. Recent studies also recommend certain patterns of composite refactorings to fully remove poor code structures, i.e, code smells, thus further improving the program comprehension. However, other recent studies report that composite refactorings often fail to fully remove code smells. Given their failure to achieve this purpose, these composite refactorings are considered incomplete, i.e, they are not able to entirely remove a smelly structure. Unfortunately, there is no study providing an in-depth analysis of the incompleteness nature of many composites and their possibly partial impact on improving, maybe decreasing, internal quality attributes. This paper identifies the most common forms of incomplete composites, and their effect on quality attributes, such as coupling and cohesion, which are known to have an impact on program comprehension. We analyzed 353 incomplete composite refactorings in 5 software projects, two common code smells (Feature Envy and God Class), and four internal quality attributes. Our results reveal that incomplete composite refactorings with at least one Extract Method are often (71%) applied without Move Methods on smelly classes. We have also found that most incomplete composite refactorings (58%) tended to at least maintain the internal structural quality of smelly classes, thereby not causing more harm to program comprehension. We also discuss the implications of our findings to the research and practice of composite refactoring.
19
Accurate and efficient refactoring detection in commit history
Nikolaos Tsantalis, Matin Mansouri, Laleh Mousavi Eshkevari et al. · 2018 · 295 citations
Why we refactor? confessions of GitHub contributors
Danilo Silva, Nikolaos Tsantalis, Marco Túlio Valente · 2016 · 278 citations · Full text
Do developers care about code smells? An exploratory survey
Aiko Yamashita, Leon Moonen · 2013 · 229 citations
A review-based comparative study of bad smell detection tools
Eduardo Fernandes, Johnatan Oliveira, Gustavo Vale et al. · 2016 · 192 citations
An Exploratory Study on the Relationship between Changes and Refactoring
Fabio Palomba, Andy Zaidman, Rocco Oliveto et al. · 2017 · 92 citations