首页> 外文期刊>ACM transactions on software engineering and methodology >Why Developers Refactor Source Code: A Mining-based Study
【24h】

Why Developers Refactor Source Code: A Mining-based Study

机译:为什么开发人员重构源代码:基于挖掘的研究

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

摘要

Refactoring aims at improving code non-functional attributes without modifying its external behavior. Previous studies investigated the motivations behind refactoring by surveying developers. With the aim of generalizing and complementing their findings, we present a large-scale study quantitatively and qualitatively investigating why developers perform refactoring in open source projects. First, we mine 287,813 refactoring operations performed in the history of 150 systems. Using this dataset, we investigate the interplay between refactoring operations and process (e.g., previous changes/fixes) and product (e.g., quality metrics) metrics. Then, we manually analyze 551 merged pull requests implementing refactoring operations and classify the motivations behind the implemented refactorings (e.g., removal of code duplication). Our results led to (ⅰ) quantitative evidence of the relationship existing between certain process/product metrics and refactoring operations and (ⅱ) a detailed taxonomy, generalizing and complementing the ones existing in the literature, of motivations pushing developers to refactor source code.
机译:重构旨在改进代码非功能属性而不修改其外部行为。以前的研究调查了通过测量开发商进行重构背后的动机。旨在概括和补充他们的调查结果,我们提供了大规模的研究,定量和定性地调查为什么开发人员在开源项目中执行重构。首先,我们在150个系统的历史中执行了287,813分档操作。使用此数据集,我们调查重构操作和过程(例如,先前更改/修复)和产品(例如,质量指标)度量之间的相互作用。然后,我们手动分析实现重构操作的551合并的拉拔请求,并对实现的重构后面的动机进行分类(例如,删除代码复制)。我们的结果导致了(Ⅰ)某些流程/产品指标与重构之间存在的关系的定量证据,(Ⅱ)详细分类,概括和补充文献中存在的动机,将开发人员推向重构源代码的动机。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号