首页> 外文会议>International Conference on Electronics Information and Emergency Communication >Selecting sequence of refactoring techniques usage for code changing using greedy algorithm
【24h】

Selecting sequence of refactoring techniques usage for code changing using greedy algorithm

机译:使用贪婪算法选择用于代码更改的重构技术使用顺序

获取原文

摘要

Refactoring is the process of changing the internal structure of software but it preserves external behavior of software. To improve software maintainability, we may apply several refactoring techniques to source code. Applying different sequence of refactoring techniques to different parts of source code results in different code changes and different level of software maintainability. We propose an approach for selecting sequence of refactoring techniques usage for code changing using Greedy Algorithm. To get optimal software maintainability, we create possible sequences of refactoring techniques usage and apply each refactoring technique to source code. Greedy Algorithm is used to separate the optimal sequence of refactoring techniques usage from possible sequences of refactoring techniques. We evaluate the approach with source code containing Long Method, Large Class and Feature Envy bad smells by comparing the changed source code result between applying the approach and without applying sequence of refactoring techniques usage. The compared results show that the changed source code by applying our approach can improve software maintainability better than the changed source code without sequencing refactoring techniques usage.
机译:重构是更改软件内部结构的过程,但它保留了软件的外部行为。为了提高软件的可维护性,我们可以将几种重构技术应用于源代码。将不同的重构技术序列应用于源代码的不同部分会导致不同的代码更改和不同级别的软件可维护性。我们提出一种选择序列的方法,该序列用于使用Greedy算法更改代码的重构技术用法。为了获得最佳的软件可维护性,我们创建了重构技术用法的可能序列,并将每种重构技术应用于源代码。贪婪算法用于将重构技术使用的最佳顺序与重构技术的可能顺序分开。我们通过比较应用该方法与未应用重构技术使用顺序之间的更改后的源代码结果,来评估包含“长方法”,“大类”和“特征羡慕”不良气味的源代码的方法。比较结果表明,与不使用序列重构技术的情况下更改的源代码相比,通过应用我们的方法更改的源代码可以更好地改善软件可维护性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号