Case study on software refactoring tactics
Authors:
Open Access
- 1 February 2014
- journal article
- research article
- Published by Institution of Engineering and Technology (IET) in IET Software
- Vol. 8 (1) , 1-11
Abstract
Refactorings might be done using two different tactics: root canal refactoring and floss refactoring. Root canal refactoring is to set aside an extended period specially for refactoring. Floss refactoring is to interleave refactorings with other programming tasks. However, no large‐scale case study on refactoring tactics is available. To this end, the authors carry out a case study to investigate the following research questions. (i) How often are root canal refactoring and floss refactoring employed, respectively? (ii) Are some kinds of refactorings more likely than others to be applied as floss refactorings or root canal refactorings? (iii) Do engineers employing both tactics have obvious bias to or against either of the tactics? They analyse the usage data information collected by Eclipse usage data collector. Results suggest that about 14% of refactorings are root canal refactorings. These findings reconfirm the hypothesis that, in general, floss refactoring is more common than root canal refactoring. The relative popularity of root canal refactoring, however, is much higher than expected. They also find that some kinds of refactorings are more likely than others to be performed as root canal refactorings. Results also suggest that engineers who have explored both tactics obviously tended towards root canal refactoring.Keywords
This publication has 26 references indexed in Scilit:
- Identifying Extract Class refactoring opportunities using structural and semantic cohesion measuresJournal of Systems and Software, 2011
- Schedule of Bad Smell Detection and Resolution: A New Way to Save EffortIEEE Transactions on Software Engineering, 2011
- Playing with refactoring: Identifying extract class opportunities through game theory2010
- Identification of refactoring opportunities introducing polymorphismJournal of Systems and Software, 2009
- Identification of Move Method Refactoring OpportunitiesIEEE Transactions on Software Engineering, 2009
- How we refactor, and how we know it2009
- Refactoring Tools: Fitness for PurposeIEEE Software, 2008
- On The Detection of Test Smells: A Metrics-Based Approach for General Fixture and Eager TestIEEE Transactions on Software Engineering, 2007
- A survey of software refactoringIEEE Transactions on Software Engineering, 2004
- CCFinder: a multilinguistic token-based code clone detection system for large scale source codeIEEE Transactions on Software Engineering, 2002