How Do I Refactor This? An Empirical Study on Refactoring Trends and Topics in Stack Overflow
Anthony Peruma, Steven Simmons, Eman Abdullah AlOmar, Christian D., Newman, Mohamed Wiem Mkaouer, Ali Ouni

TL;DR
This paper analyzes Stack Overflow discussions to understand real-world refactoring needs, revealing common topics and gaps between research and practice to improve tool support for developers.
Contribution
It provides an empirical analysis of refactoring discussions on Stack Overflow, identifying key areas where developers seek help and highlighting the gap between research and practical adoption.
Findings
Stack Overflow is used by diverse developers for refactoring help across various technologies.
Five main areas of refactoring assistance are identified: Code Optimization, Tools and IDEs, Architecture and Design Patterns, Unit Testing, Database.
Insights aim to bridge research and real-world refactoring practices.
Abstract
An essential part of software maintenance and evolution, refactoring is performed by developers, regardless of technology or domain, to improve the internal quality of the system, and reduce its technical debt. However, choosing the appropriate refactoring strategy is not always straightforward, resulting in developers seeking assistance. Although research in refactoring is well-established, with several studies altering between the detection of refactoring opportunities and the recommendation of appropriate code changes, little is known about their adoption in practice. Analyzing the perception of developers is critical to understand better what developers consider to be problematic in their code and how they handle it. Additionally, there is a need for bridging the gap between refactoring, as research, and its adoption in practice, by extracting common refactoring intents that are…
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.
