Improving Code Effectiveness Through Refactoring: A Case Study

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.

Authors

Institutions

Publication Details

Journal
Journal of Informatics and Web Engineering
Published
2025-10-14
DOI
https://doi.org/10.33093/jiwe.2025.4.3.26
Primary Topic
Model-Driven Software Engineering Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Improving Code Effectiveness Through Refactoring: A Case Study

Mazni Omar, Abdullah Almogahed, Samera Obaid Barraood, Abdul Rehman Gilal et al.
Journal of Informatics and Web Engineering
Model-Driven Software Engineering Techniques
article

Improving Code Effectiveness Through Refactoring: A Case Study

Mazni Omar, Abdullah Almogahed, Samera Obaid Barraood, Abdul Rehman Gilal, Manal Othman
article en

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.

Journal of Informatics and Web EngineeringVol. 4(3)
Florida International University (US), Hadhramout University (YE), Tun Hussein Onn University of Malaysia (MY), Northern University of Malaysia (MY)
Universiti Tun Hussein Onn Malaysia
Openalex Percentile: Top 69%
Model-Driven Software Engineering Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.