首页> 外文会议>IEEE/ACM International Conference on Mining Software Repositories >'Automatically Assessing Code Understandability' Reanalyzed: Combined Metrics Matter
【24h】

'Automatically Assessing Code Understandability' Reanalyzed: Combined Metrics Matter

机译:重新分析了“自动评估代码的可理解性”:组合指标很重要

获取原文

摘要

Previous research shows that developers spend most of their time understanding code. Despite the importance of code understandability for maintenance-related activities, an objective measure of it remains an elusive goal. Recently, Scalabrino et al. reported on an experiment with 46 Java developers designed to evaluate metrics for code understandability. The authors collected and analyzed data on more than a hundred features describing the code snippets, the developers' experience, and the developers' performance on a quiz designed to assess understanding. They concluded that none of the metrics considered can individually capture understandability. Expecting that understandability is better captured by a combination of multiple features, we present a reanalysis of the data from the Scalabrino et al. study, in which we use different statistical modeling techniques. Our models suggest that some computed features of code, such as those arising from syntactic structure and documentation, have a small but significant correlation with understandability. Further, we construct a binary classifier of understandability based on various interpretable code features, which has a small amount of discriminating power. Our encouraging results, based on a small data set, suggest that a useful metric of understandability could feasibly be created, but more data is needed.
机译:先前的研究表明,开发人员花费了大部分时间来理解代码。尽管代码可理解性对于与维护相关的活动很重要,但是对其进行客观衡量仍然是一个遥不可及的目标。最近,Scalabrino等人。报告了与46位Java开发人员进行的一项实验,该实验旨在评估代码的易懂性指标。作者收集并分析了有关一百多个功能的数据,这些功能描述了代码片段,开发人员的经验以及开发人员的性能,旨在评估其理解程度。他们得出的结论是,所考虑的任何指标都无法单独捕获可理解性。期望通过结合多种功能可以更好地捕获可理解性,因此我们对Scalabrino等人的数据进行了重新分析。研究中,我们使用了不同的统计建模技术。我们的模型表明,某些代码的计算出的功能(例如由句法结构和文档产生的那些功能)与可理解性之间存在很小但重要的关联。此外,我们基于各种可解释的代码特征构造了可理解性的二进制分类器,该分类器具有少量的识别能力。基于少量数据,我们令人鼓舞的结果表明,可以切实地创建有用的可理解性度量标准,但是需要更多数据。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号