Turkish Journal of Computer and Mathematics Education
Journal license

Journal

Turkish Journal of Computer and Mathematics Education


Volume
& Issue

Volume 12, Issue 3


Published
on

April 5, 2021


Pages

2172-2177


DOI

Article

Code Analysis Tool to Detect Extract Class Refactoring Activity in Vb.Net Classes


Authors

K.y. Sharif* Affiliation:
Faculty of Computer Science and Information Technology, Universiti Putra Malaysia, Selangor, Malaysia
, M.g.h. Muftah Affiliation:
Faculty of Computer Science and Information Technology, Universiti Putra Malaysia, Selangor, Malaysia
, M.h. Osman Affiliation:
Faculty of Computer Science and Information Technology, University Putra Malaysia, Malaysia
and M.l. Zakaria Affiliation:
Faculty of Computer Science and Information Technology, Universiti Putra Malaysia, Selangor, Malaysia


Abstract

Code changes due to software change request s and bug fixing are inevitable in software lifecycle. The code modification may slowly deviate the code structure from its original structure that leads to unreadable code. Even though the code structure does not affect the software behaviour, it affects the code understandability and maintainability of software. Code refactoring is typically conducted to enhance the code structure; however, this task needs a lot of developers’ effort. Thus, this paper aims at developing a tool that will help programmers identify possible code refactoring. Weconsider two aspects of refactoring:(i) refactoring activities, and (ii) refactoring prediction model. In terms of refactoring activity, we focus on Extract Class. The object -oriented metrics are u sed to predict the possibility of code refactoring. The combination of two refactoring aspects recommends the possible refactoring effort and identify classes that are involved. As a result, we managed to get 79% percent of accuracy based on the 11 correct results out of 14 that the tool correctly detected. On top of supporting programmers in improving codes, this work also may give more insight into how refactoring improvessystems.


Keywords

Data mining, Extract subclass, Object-oriented metrics, Refactoring, Refactoring detection


Citation

Sharif, K., Muftah, M., Osman, M., & Zakaria, M. (2021). Code analysis tool to detect extract class refactoring activity in vb.net classes. Turkish Journal of Computer and Mathematics Education, 12(3), 2172–2177.

Published by: Engineering Journals

Engineering Journals Logo