Improving Code Effectiveness Through Refactoring: A Case Study

Citation

Almogahed, Abdullah and Othman, Manal and Omar, Mazni and Barraood, Samera Obaid and Gilal, Abdul Rehman (2025) Improving Code Effectiveness Through Refactoring: A Case Study. Journal of Informatics and Web Engineering, 4 (3). pp. 427-440. ISSN 2821-370X

[img] Text
2169-Article Text-21979-2-10-20251031.pdf - Published Version
Restricted to Repository staff only

Download (757kB)

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.

Item Type: Article
Uncontrolled Keywords: Refactoring, refactoring methods, code effectiveness, software quality
Subjects: Q Science > QA Mathematics > QA71-90 Instruments and machines > QA75.5-76.95 Electronic computers. Computer science > QA76.75-76.765 Computer software
Depositing User: Nor Afiqah Mohd Adnan
Date Deposited: 11 Nov 2025 02:35
Last Modified: 11 Nov 2025 02:35
URII: http://shdl.mmu.edu.my/id/eprint/14881

Downloads

Downloads per month over past year

View ItemEdit (login required)