Improving Code Effectiveness Through Refactoring: A Case Study
Open Access
- 14 October 2025
- journal article
- Published by Multimedia University in Journal of Informatics and Web Engineering
- Vol. 4 (3) , 427-440
Abstract
Software refactoring is a crucial practice in modern software development methodologies, such as Agile and DevOps, as it enables teams to iteratively improve and evolve their codebases while minimizing the risk of introducing bugs or regressions. It fosters a culture of continuous improvement and code hygiene, ultimately leading to more robust, maintainable, and scalable software systems. However, research examining the impact of refactoring on code effectiveness is scarce. This study, therefore, seeks to investigate the impact of refactoring methods on the code’s effectiveness. The study was carried out in four distinct phases: refactoring methods selection, case study selection, software metric selection for evaluating the effectiveness of the code, and refactoring methods implementation. The five most prevalent refactoring methods (Extract Subclass, Extract Class, Introduce Parameter Object, Extract Method, and Move Method) were chosen and implemented in the jHotDraw case study. The refactoring methods were implemented 86 times across five experiments in the jHotDraw case study. The results indicate that Extract Subclass, Extract Class, and Introduce Parameter Object have a significant positive impact on code effectiveness, while Extract Method and Move Method do not affect code effectiveness. Practitioners and software designers can utilize this knowledge to make informed assessments regarding refactoring methods and produce software systems that are more reliable and effective.Keywords
This publication has 49 references indexed in Scilit:
- An inclusive survey on automation of refactoring: challenges and opportunitiesInternational Journal of System Assurance Engineering and Management, 2025
- Move method refactoring recommendation based on deep learning and LLM-generated informationInformation Sciences, 2024
- Refactoring for reuse: an empirical studyInnovations in Systems and Software Engineering, 2022
- How Do Developers Refactor Code to Improve Code Reusability?2020
- Refactoring effect on internal quality attributes: What haven’t they told you yet?Information and Software Technology, 2020
- On opportunistic software reuseComputing, 2020
- International Conference on Innovative Computing and Communications2019
- An empirical study to improve software security through the application of code refactoringInformation and Software Technology, 2018
- An experimental investigation on the innate relationship between quality and refactoringJournal of Systems and Software, 2015
- A Case Study on the Impact of Refactoring on Quality and Productivity in an Agile Team2008