TY - GEN
T1 - Evaluation of a Long-Method Refactoring Technic Using Reusability Assessment Metrics Based On ISO/IEC 25023 in Php Program Code
AU - Hadiningrum, Tiara Rahmania
AU - Rochimah, Siti
N1 - Publisher Copyright:
© 2024 IEEE.
PY - 2024
Y1 - 2024
N2 - This study explores the application of various refactoring techniques in PHP programs to improve code reuse, guided by the ISO/IEC 25023 standard for software quality. The main focus is on refactoring long methods, which are often plagued by complex logic and multiple responsibilities. This study uses several techniques such as Extract Method, Move Method, Replace Temp with Query, Introduce Parameter Object, and Replace Method with Method Object to improve the internal structure of the code. The results show a marked improvement in code modularity and separation of concerns. In particular, the MRE-1G metric, which measures reuse, showed a 3.6% improvement (from 0.877 to 0.894), while the MRE-2S metric saw a 14.6% improvement (from 0.123 to 0.141). Moreover, the creation of new classes during the refactoring process was crucial in achieving these higher reuse rates, which emphasizes the importance of modular design in software development. The findings show that refactoring, particularly through the introduction of new classes, leads to better code reuse and highlights the importance of maintaining well-structured code in software development practices. This study provides valuable insights into how refactoring can improve software quality and reuse, as well as offering practical guidance for developers looking to improve the maintainability of their PHP codebase.
AB - This study explores the application of various refactoring techniques in PHP programs to improve code reuse, guided by the ISO/IEC 25023 standard for software quality. The main focus is on refactoring long methods, which are often plagued by complex logic and multiple responsibilities. This study uses several techniques such as Extract Method, Move Method, Replace Temp with Query, Introduce Parameter Object, and Replace Method with Method Object to improve the internal structure of the code. The results show a marked improvement in code modularity and separation of concerns. In particular, the MRE-1G metric, which measures reuse, showed a 3.6% improvement (from 0.877 to 0.894), while the MRE-2S metric saw a 14.6% improvement (from 0.123 to 0.141). Moreover, the creation of new classes during the refactoring process was crucial in achieving these higher reuse rates, which emphasizes the importance of modular design in software development. The findings show that refactoring, particularly through the introduction of new classes, leads to better code reuse and highlights the importance of maintaining well-structured code in software development practices. This study provides valuable insights into how refactoring can improve software quality and reuse, as well as offering practical guidance for developers looking to improve the maintainability of their PHP codebase.
KW - iso/iec 25023
KW - long method
KW - php program
KW - refactoring
KW - reusability
UR - https://www.scopus.com/pages/publications/105001659490
U2 - 10.1109/ICICYTA64807.2024.10912871
DO - 10.1109/ICICYTA64807.2024.10912871
M3 - Conference contribution
AN - SCOPUS:105001659490
T3 - 2024 International Conference on Intelligent Cybernetics Technology and Applications, ICICyTA 2024
SP - 389
EP - 394
BT - 2024 International Conference on Intelligent Cybernetics Technology and Applications, ICICyTA 2024
PB - Institute of Electrical and Electronics Engineers Inc.
T2 - 4th International Conference on Intelligent Cybernetics Technology and Applications, ICICyTA 2024
Y2 - 17 December 2024 through 19 December 2024
ER -