arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1502.03526cs.SE
收藏

重构对代码质量内部和外部度量影响的实证评估

An Empirical Evaluation of Impact of Refactoring On Internal and External Measures of Code Quality

S. H. Kannangara, W. M. J. I. Wijayanayake

摘要:

重构是通过改变现有代码的内部结构而不影响其外部行为来改进其设计的过程,其主要目的是提高软件产品的质量。因此,人们相信重构可以提高质量因素,如可理解性、灵活性和可重用性。然而,支持这种假设的经验证据有限。本研究的目的是验证/无效的索赔,重构提高软件质量。选择重构技术的影响进行了评估,使用外部和内部的措施。通过实验评估了10种重构技术,以评估ISO外部质量因素的外部度量:资源利用率,时间行为,可更改性和可分析性,以及5种内部度量:可维护性指数,圈复杂性,继承深度,类耦合和代码行。外部测量的结果没有显示重构处理后代码质量的任何改进。然而,从内部测量,可维护性指数表明重构代码的代码质量比未重构代码的代码质量有所改善,而其他内部测量没有表明重构代码有任何积极的影响

英文摘要:

Refactoring is the process of improving the design of existing code by changing its internal structure without affecting its external behaviour, with the main aims of improving the quality of software product. Therefore, there is a belief that refactoring improves quality factors such as understandability, flexibility, and reusability. However, there is limited empirical evidence to support such assumptions. The objective of this study is to validate/invalidate the claims that refactoring improves software quality. The impact of selected refactoring techniques was assessed using both external and internal measures. Ten refactoring techniques were evaluated through experiments to assess external measures: Resource Utilization, Time Behaviour, Changeability and Analysability which are ISO external quality factors and five internal measures: Maintainability Index, Cyclomatic Complexity, Depth of Inheritance, Class Coupling and Lines of Code. The result of external measures did not show any improvements in code quality after the refactoring treatment. However, from internal measures, maintainability index indicated an improvement in code quality of refactored code than non-refactored code and other internal measures did not indicate any positive effect on refactored code

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑