An initial study on refactoring tactics

Hui Liu*, Yuan Gao, Zhendong Niu

*此作品的通讯作者

科研成果: 书/报告/会议事项章节会议稿件同行评审

10 引用 (Scopus)

摘要

Software refactoring might be done in two different tactics. The first one is XP-style small-step refactoring, also called floss refactoring. The other tactic, called root canal refactoring, is to set aside an extended period specially for refactoring. Floss refactoring, as one of the corner stones of XP, is well acknowledged. In contrast, root canal refactoring is doubted, especially by XP advocators. Despite the doubts, however, no large scale empirical study on refactoring tactics has been reported. In contrast to the doubts, cases of root canal refactoring have been reported from industry, e.g., Microsoft. Researchers from academe have also proposed various approaches to facilitating root canal refactoring. To this end, this paper would investigate the following questions. (1)How often are the two different tactics employed, respectively? (2) Is there any correlation between refactoring tactics and categories of refactorings? In other words, are some kinds of refactorings more likely than others to be done as floss refactorings or root canal refactorings? To answer these questions, we analyze refactoring histories collected by Eclipse Usage Data Collector (UDC). The data are collected from 753,367 engineers worldwide. Analysis results suggest that about 11.5 percent of refactorings collected by UDC are root canal refactorings, whereas others (88.5 percent) are floss refactorings. We also find that some kinds of refactorings, e.g., Introduce Parameter, are more likely than others to be performed as root canal refactorings.

源语言英语
主期刊名Proceedings - 36th Annual IEEE International Computer Software and Applications Conference, COMPSAC 2012
213-218
页数6
DOI
出版状态已出版 - 2012
活动36th IEEE Annual International Computer Software and Applications Conference, COMPSAC 2012 - Izmir, 土耳其
期限: 16 7月 201220 7月 2012

出版系列

姓名Proceedings - International Computer Software and Applications Conference
ISSN(印刷版)0730-3157

会议

会议36th IEEE Annual International Computer Software and Applications Conference, COMPSAC 2012
国家/地区土耳其
Izmir
时期16/07/1220/07/12

指纹

探究 'An initial study on refactoring tactics' 的科研主题。它们共同构成独一无二的指纹。

引用此