首页> 外文会议>Software quality days conferenceSWQD >Learning to Rank Extract Method Refactoring Suggestions for Long Methods
【24h】

Learning to Rank Extract Method Refactoring Suggestions for Long Methods

机译:学习对长途方法进行排名提取方法重构建议

获取原文

摘要

Extract method refactoring is a common way to shorten long methods in software development. It improves code readability, reduces complexity, and is one of the most frequently used refactorings. Nevertheless, sometimes developers refrain from applying it because identifying an appropriate set of statements that can be extracted into a new method is error-prone and time-consuming.In a previous work, we presented a method that could be used to automatically derive extract method refactoring suggestions for long Java methods, that generated useful suggestions for developers. The approach relies on a scoring function that ranks all valid refactoring possibilities (that is, all candidates) to identify suitable candidates for an extract method refactoring that could be suggested to developers. Even though the evaluation has shown that the suggestions are useful for developers, there is a lack of understanding of the scoring function. In this paper, we present research on the single scoring features, and their importance for the ranking capability. In addition, we evaluate the ranking capability of the suggested scoring function, and derive a better and less complex one using learning to rank techniques.
机译:提取方法重构是一种缩短软件开发中长方法的常用方法。它提高了代码可读性,降低了复杂性,并且是最常用的重构之一。尽管如此,有时开发人员避免应用它,因为识别可以提取到新方法的适当语句是出错的,并且时间--Consuming.IN先前的工作,我们呈现了一种可用于自动推导提取方法的方法重构Long Java方法的建议,为开发人员产生了有用的建议。该方法依赖于评分函数,该函数排名所有有效的重构可能性(即所有候选者),以确定可以向开发人员建议的提取方法重构的合适候选者。尽管评估表明,该建议对开发人员有用,但缺乏对得分功能的理解。在本文中,我们展示了对单一评分特征的研究,以及它们对排名能力的重要性。此外,我们评估了建议的评分功能的排名能力,并使用学习来评估了更好,更不重要的复杂性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号