首页> 外文期刊>Software Engineering, IEEE Transactions on >Methodbook: Recommending Move Method Refactorings via Relational Topic Models
【24h】

Methodbook: Recommending Move Method Refactorings via Relational Topic Models

机译:方法手册:通过关系主题模型推荐移动方法重构

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

摘要

During software maintenance and evolution the internal structure of the software system undergoes continuous changes. These modifications drift the source code away from its original design, thus deteriorating its quality, including cohesion and coupling of classes. Several refactoring methods have been proposed to overcome this problem. In this paper we propose a novel technique to identify Move Method refactoring opportunities and remove the Feature Envy bad smell from source code. Our approach, coined as Methodbook, is based on relational topic models (RTM), a probabilistic technique for representing and modeling topics, documents (in our case methods) and known relationships among these. Methodbook uses RTM to analyze both structural and textual information gleaned from software to better support move method refactoring. We evaluated Methodbook in two case studies. The first study has been executed on six software systems to analyze if the move method operations suggested by Methodbook help to improve the design quality of the systems as captured by quality metrics. The second study has been conducted with eighty developers that evaluated the refactoring recommendations produced by Methodbook. The achieved results indicate that Methodbook provides accurate and meaningful recommendations for move method refactoring operations.
机译:在软件维护和发展过程中,软件系统的内部结构会不断变化。这些修改使源代码偏离了其原始设计,从而降低了其质量,包括类的内聚和耦合。已经提出了几种重构方法来克服这个问题。在本文中,我们提出了一种新颖的技术来识别“移动方法”重构机会,并从源代码中消除Feature Envy的不良气味。我们的方法(称为方法手册)基于关系主题模型(RTM),这是一种用于表示和建模主题,文档(在我们的情况下为方法)以及这些主题之间的已知关系的概率技术。 Methodbook使用RTM分析从软件收集的结构和文本信息,以更好地支持移动方法重构。我们在两个案例研究中评估了Methodbook。第一项研究已在六个软件系统上执行,以分析Methodbook建议的移动方法操作是否有助于提高质量度量所捕获的系统设计质量。第二项研究是与80位开发人员一起进行的,他们评估了Methodbook产生的重构建议。取得的结果表明,Methodbook为移动方法重构操作提供了准确而有意义的建议。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号