首页> 外文会议>European conference on object-oriented programming >A Comparative Study of Manual and Automated Refactorings
【24h】

A Comparative Study of Manual and Automated Refactorings

机译:手动和自动重构的比较研究

获取原文

摘要

Despite the enormous success that manual and automated refactoring has enjoyed during the last decade, we know little about the practice of refactoring. Understanding the refactoring practice is important for developers, refactoring tool builders, and researchers. Many previous approaches to study refactorings are based on comparing code snapshots, which is imprecise, incomplete, and does not allow answering research questions that involve time or compare manual and automated refactoring. We present the first extended empirical study that considers both manual and automated refactoring. This study is enabled by our algorithm, which infers refactorings from continuous changes. We implemented and applied this algorithm to the code evolution data collected from 23 developers working in their natural environment for 1,520 hours. Using a corpus of 5,371 refactorings, we reveal several new facts about manual and automated refactorings. For example, more than half of the refactorings were performed manually. The popularity of automated and manual refactorings differs. More than one third of the refactorings performed by developers are clustered in time. On average, 30% of the performed refactorings do not reach the Version Control System.
机译:尽管在过去十年中,手动和自动重构取得了巨大的成功,但我们对重构的实践却知之甚少。对于开发人员,重构工具构建者和研究人员而言,了解重构实践非常重要。以前许多研究重构的方法都是基于比较代码快照的,这是不精确,不完整的,并且不允许回答涉及时间的研究问题或比较手动和自动重构。我们提出了第一个扩展的经验研究,该研究同时考虑了手动和自动重构。这项研究是由我们的算法实现的,该算法可从连续更改中推断出重构。我们将这种算法实施并将其应用于从23位在自然环境中工作了1520小时的开发人员收集的代码演变数据中。使用5,371个重构的语料库,我们揭示了有关手动和自动重构的一些新事实。例如,一半以上的重构是手动执行的。自动重构和手动重构的流行程度有所不同。开发人员执行的重构中有三分之一以上是及时聚集的。平均而言,执行的重构中有30%没有到达版本控制系统。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号