2016 · 278 citations · 36 references
ComputingComputer ScienceDesign AutomationDocumentationSoftware EngineeringSoftware DesignSoftware MaintenanceSoftware RefactoringSoftware ReuseAutomated RefactoringCode SmellsExtractRefactoringRefactoring DetectionRefactoring OperationsThematic Motive Analysis
Refactoring is a widespread practice that improves code maintainability and readability, yet few empirical studies investigate the motivations behind specific refactoring operations. The study monitored Java projects on GitHub to detect recent refactorings and surveyed developers about their motivations. We monitored GitHub Java projects, collected developer explanations, and applied thematic analysis to produce a catalogue of 44 motivations for 12 refactoring types. We found that refactoring activity is mainly driven by changes in requirements rather than code smells, that Extract Method is the most versatile refactoring serving 11 purposes, and that the IDE used influences adoption of automated refactoring tools.
Refactoring is a widespread practice that helps developers to improve the maintainability and readability of their code. However, there is a limited number of studies empirically investigating the actual motivations behind specific refactoring operations applied by developers. To fill this gap, we monitored Java projects hosted on GitHub to detect recently applied refactorings, and asked the developers to ex- plain the reasons behind their decision to refactor the code. By applying thematic analysis on the collected responses, we compiled a catalogue of 44 distinct motivations for 12 well-known refactoring types. We found that refactoring activity is mainly driven by changes in the requirements and much less by code smells. Extract Method is the most versatile refactoring operation serving 11 different purposes. Finally, we found evidence that the IDE used by the developers affects the adoption of automated refactoring tools.
36
Violin Plots: A Box Plot-Density Trace Synergism
Jerry L. Hintze, Ray D. Nelson · The American Statistician · 1998 · 1.6K citations
A survey of software refactoring
Tom Mens, Tom Tourwé · IEEE Transactions on Software Engineering · 2004 · 1.2K citations · Full text