DocumentCode
2187049
Title
Using software metrics to select refactoring for long method bad smell
Author
Meananeatra, Panita ; Rongviriyapanish, Songsakdi ; Apiwattanapong, Taweesup
Author_Institution
Comput. Sci. Dept., Thummasat Univ., Pathumthani, Thailand
fYear
2011
fDate
17-19 May 2011
Firstpage
492
Lastpage
495
Abstract
Refactoring is a technique for improving software structure without changing its behavior which can be used to remove bad smells and increases software maintainability. But only few approaches have been proposed to address the identification of appropriate refactorings. Specifically, our research proposes a method to select refactoring based on software metrics which are defined in terms of data flow and control flow graphs. The method consist of 4 steps: 1) calculate metrics, 2) find candidate refactoring by using refactoring filtering condition (RFC), 3) apply a suite of candidate refactorings and compute maintainability, and 4) identify the refactoring that gives the highest maintainability. We demonstrate out approach by giving an example of removing a long method bad smell in a customer class in a movie rental system. Our approach proves to be able to suggest an appropriate set of refactoring techniques such as extract method, replace temp with query, and decompose condition, to solve the long method bad smell.
Keywords
chemioception; data flow graphs; software maintenance; software metrics; bad smell; control flow graphs; data flow graphs; long method; movie rental system; refactoring filtering condition; software maintainability; software metrics; software refactoring; Measurement; Switches; Bad Smell; Long Method; Refactoring Identification; Software Maintainability; Software Metrics;
fLanguage
English
Publisher
ieee
Conference_Titel
Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON), 2011 8th International Conference on
Conference_Location
Khon Kaen
Print_ISBN
978-1-4577-0425-3
Type
conf
DOI
10.1109/ECTICON.2011.5947882
Filename
5947882
Link To Document