【24h】

An Initial Study on Refactoring Tactics

机译:重构策略初探

获取原文
获取原文并翻译 | 示例

摘要

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.
机译:可以通过两种不同的策略来完成软件重构。第一个是XP样式的小步重构,也称为牙线重构。另一种策略称为“根管重构”,是专门延长一段时间以进行重构。牙线重构作为XP的基础之一,已广为人知。相反,根管重构受到质疑,尤其是XP倡导者。尽管存在疑问,但是,没有关于重构策略的大规模实证研究的报道。与这种怀疑相反,业已报告了根管重构的案例,例如微软。来自学术界的研究人员还提出了各种促进根管重构的方法。为此,本文将研究以下问题。 (1)分别采用两种不同策略的频率是多少? (2)重构策略和重构类别之间是否有关联?换句话说,某种形式的重构是否比其他形式更像牙线重构或根管重构?为了回答这些问题,我们分析了Eclipse Usage Data Collector(UDC)收集的重构历史。数据收集自全球753,367位工程师。分析结果表明,UDC收集的重构中约有11.5%是根管重构,而其他(88.5%)是牙线重构。我们还发现,某些种类的重构,例如介绍参数,比其他种类更有可能作为根管重构来执行。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号