首页> 外文会议>International conference on advances in computing, communications and informatics >Sequencing of refactoring techniques by Greedy algorithm for maximizing maintainability
【24h】

Sequencing of refactoring techniques by Greedy algorithm for maximizing maintainability

机译:利用Greedy算法对重构技术进行排序,以最大程度地提高可维护性

获取原文

摘要

Software maintainability is the ease with which a software system can be modified to correct faults, improve performance or other attributes of the source code. Bad smells are symptoms of deeper problem that indicates the need for refactoring which is the process of changing internal structure of the software without affecting its external attributes. Applying different refactoring techniques in different parts of a code results in changed maintainability value every time. Therefore, sequence in which refactoring should be applied is important so that optimal results can be obtained. In this study, we have proposed an approach for evaluating sequence of refactoring by with the help of greedy algorithm. The algorithm selects locally optimal solution at each stage with the hope of finding global optimal solution. Different sequences are generated and applied to the source code to calculate sum of software maintainability values. Greedy algorithm helps in finding the optimal sequence out of all the search space. We have evaluated the approach with source code having god class, long method, feature envy, long parameter list, data clumps, data class, class hierarchy problem, empty catch block, exception thrown in finally block and nested try statement bad smells which are detected manually. Hence our approach is able to identify sequence for refactoring as well as best refactoring which will increase maintainability and enhance software quality.
机译:软件可维护性是可以轻松修改软件系统以纠正错误,提高性能或源代码的其他属性的便捷性。难闻的气味是更深层问题的症状,表明需要重构,重构是在不影响软件外部属性的情况下更改软件内部结构的过程。在代码的不同部分中应用不同的重构技术会导致每次更改的可维护性值。因此,应应用重构的顺序很重要,这样可以获得最佳结果。在这项研究中,我们提出了一种借助贪心算法评估重构序列的方法。该算法在每个阶段选择局部最优解,希望找到全局最优解。生成不同的序列并将其应用于源代码以计算软件可维护性值的总和。贪婪算法有助于从所有搜索空间中找到最佳序列。我们用源代码评估了该方法,该源代码具有上帝类,长方法,令人羡慕的功能,长参数列表,数据块,数据类,类层次结构问题,空catch块,finally块中引发的异常以及嵌套的try语句难闻的气味,这些气味被检测到手动。因此,我们的方法能够确定重构的顺序以及最佳重构,这将增加可维护性并提高软件质量。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号