首页> 外文会议>IEEE/ACM International Conference on Program Comprehension >Comparing Heuristic and Machine Learning Approaches for Metric-Based Code Smell Detection
【24h】

Comparing Heuristic and Machine Learning Approaches for Metric-Based Code Smell Detection

机译:比较启发式和机器学习方法,用于基于度量的码闻检测

获取原文

摘要

Code smells represent poor implementation choices performed by developers when enhancing source code. Their negative impact on source code maintainability and comprehensibility has been widely shown in the past and several techniques to automatically detect them have been devised. Most of these techniques are based on heuristics, namely they compute a set of code metrics and combine them by creating detection rules; while they have a reasonable accuracy, a recent trend is represented by the use of machine learning where code metrics are used as predictors of the smelliness of code artefacts. Despite the recent advances in the field, there is still a noticeable lack of knowledge of whether machine learning can actually be more accurate than traditional heuristic-based approaches. To fill this gap, in this paper we propose a large-scale study to empirically compare the performance of heuristic-based and machine-learning-based techniques for metric-based code smell detection. We consider five code smell types and compare machine learning models with DECOR, a state-of-the-art heuristic-based approach. Key findings emphasize the need of further research aimed at improving the effectiveness of both machine learning and heuristic approaches for code smell detection: while DECOR generally achieves better performance than a machine learning baseline, its precision is still too low to make it usable in practice.
机译:代码气味代表开发人员在增强源代码时执行的糟糕的实现选择。它们对源代码可维护性和可理解性的负面影响已被广泛地显示过去,并且已经设计了几种用于自动检测它们的技术。这些技术中的大多数都是基于启发式信息,即它们计算一组代码指标并通过创建检测规则来组合它们;虽然它们具有合理的准确性,但最近的趋势是通过使用机器学习来表示的,其中代码度量用作代码人工制品的闻起的预测因子。尽管该领域最近进展,但仍然有一个明显的知识,无论机器学习是否实际上都比基于传统的启发式的方法更准确。为了填补这一差距,在本文中,我们提出了大规模的研究,以凭经验比较了基于机启发式和基于机器学习的技术的性能的基于度量的代码味道检测。我们考虑五种代码味道,并比较带有装饰的机器学习模型,基于最先进的启发式的方法。主要调查结果强调需要进一步研究的旨在提高机器学习和启发式味道检测方法的有效性:虽然装饰普遍实现比机器学习基线更好的性能,但其精度仍然太低,无法在实践中实现它。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号