首页> 外文会议>IEEE/ACM International Conference on Program Comprehension >Improving Source Code Readability: Theory and Practice
【24h】

Improving Source Code Readability: Theory and Practice

机译:提高源代码可读性:理论与实践

获取原文

摘要

There are several widely accepted metrics to measure code quality that are currently being used in both research and practice to detect code smells and to find opportunities for code improvement. Although these metrics have been proposed as a proxy of code quality, recent research suggests that more often than not, state-of-the-art code quality metrics do not successfully capture quality improvements in the source code as perceived by developers. More specifically, results show that there may be inconsistencies between, on the one hand, the results from metrics for cohesion, coupling, complexity, and readability, and, on the other hand, the interpretation of these metrics in practice. As code improvement tools rely on these metrics, there is a clear need to identify and resolve the aforementioned inconsistencies. This will allow for the creation of tools that are more aligned with developers' perception of quality, and can more effectively help source code improvement efforts. In this study, we investigate 548 instances of source code readability improvements, as explicitly stated by internal developers in practice, from 63 engineered software projects. We show that current readability models fail to capture readability improvements. We also show that tools to calculate additional metrics, to detect refactorings, and to detect style problems are able to capture characteristics that are specific to readability changes and thus should be considered by future readability models.
机译:有几个广泛接受的指标来测量目前用于研究和实践的代码质量,以检测代码气味并找到代码改进的机会。虽然已经提出了这些指标作为代码质量的代理,但最近的研究表明,最常见的代码质量指标不会成功地捕获开发人员所感知的源代码中的质量改进。更具体地说,结果表明,一方面,在凝聚力,耦合,复杂性和可读性的度量之间可能存在不一致,另一方面,在实践中解释这些度量。由于代码改进工具依赖于这些指标,因此明确需要识别和解决上述不一致。这将允许创建与开发人员对质量的看法更调整的工具,并且可以更有效地帮助资源代码改进努力。在这项研究中,我们调查了548个源代码可读性改进,如内部开发人员在实践中明确说明的,从63个工程化软件项目中明确说明。我们表明当前可读性模型无法捕获可读性改进。我们还显示了计算额外指标的工具来检测重构,并检测样式问题能够捕获特定于可读性变化的特性,因此应该由未来的可读性模型考虑。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号