跳到主要导航 跳到搜索 跳到主要内容

An initial study on refactoring tactics

  • Beijing Institute of Technology
  • Peking University

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

摘要

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
出版商IEEE Computer Society
页213-218
页数6
ISBN(印刷版)9780769547367
DOI
出版状态已出版 - 2012
已对外发布是
活动36th Annual IEEE International Computer Software and Applications Conference, COMPSAC 2012 - Izmir, 土耳其
期限: 16 7月 2012 → 20 7月 2012

丛书

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

会议

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

学术指纹

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

引用此