【24h】

Drivers for software refactoring decisions

机译:软件重构决策的驱动力

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

摘要

This paper presents an empirical study of drivers for software refactoring decisions. We studied the refactoring decisions made by 37 students evaluating ten methods of a purposefully constructed Java program. The decision rationales reported by the evaluators were coded to identify the drivers behind the decisions. The identified drivers were categorized into Structure, Documentation, Visual Representation, and General drivers. The evaluators had conflicting opinions both regarding the internal quality of the methods and refactoring decisions. Complex code problems were detected only by experienced evaluators. Using regression analysis, we looked at the predictive value of drivers explaining the refactoring decisions. The most salient driver leading to a favourable refactoring decision was method size. This study provides information of the refactoring decisions and helps form a basis for creating code problem detectors. By comparing automatic detection and the identified drivers we gained understanding of code problems that are difficult or impossible to detect automatically, for example Poor Algorithm. Issues detected only by experienced developers, and code problems for which the human eye surpasses automatic detection indicate good areas for developer education.
机译:本文提出了用于软件重构决策的驱动程序的实证研究。我们研究了由37名学生做出的重构决策,这些决策者评估了故意构建的Java程序的10种方法。评估人员报告的决策依据经过编码,以识别决策背后的推动力。确定的驱动程序分为“结构”,“文档”,“视觉表示”和“通用”驱动程序。对于方法的内部质量和重构决策,评估人员的意见不一致。只有经验丰富的评估人员才能发现复杂的代码问题。使用回归分析,我们查看了驱动程序的预测价值,这些驱动因素解释了重构决策。导致有利的重构决策的最明显的驱动因素是方法大小。这项研究提供了有关重构决策的信息,并有助于为创建代码问题检测器奠定基础。通过将自动检测与识别出的驱动程序进行比较,我们了解了难以或无法自动检测的代码问题,例如,算法较差。仅由经验丰富的开发人员检测到的问题,以及人眼超过自动检测的代码问题,为开发人员提供了良好的培训领域。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号