首页> 外文期刊>Empirical Software Engineering >Detecting and refactoring code smells in spreadsheet formulas
【24h】

Detecting and refactoring code smells in spreadsheet formulas

机译:检测和重构电子表格公式中的代码气味

获取原文
获取原文并翻译 | 示例
       

摘要

Spreadsheets are used extensively in business processes around the world and just like software, spreadsheets are changed throughout their lifetime causing understandability and maintainability issues. This paper adapts known code smells to spreadsheet formulas. To that end we present a list of metrics by which we can detect smelly formulas; a visualization technique to highlight these formulas in spreadsheets and a method to automatically suggest refactorings to resolve smells. We implemented the metrics, visualization and refactoring suggestions techniques in a prototype tool and evaluated our approach in three studies. Firstly, we analyze the EUSES spreadsheet corpus, to study the occurrence of the formula smells. Secondly, we analyze ten real life spreadsheets, and interview the spreadsheet owners about the identified smells. Finally, we generate refactoring suggestions for those ten spreadsheets and study the implications. The results of these evaluations indicate that formula smells are common, that they can reveal real errors and weaknesses in spreadsheet formulas and that in simple cases they can be refactored.
机译:电子表格在世界各地的业务流程中得到广泛使用,就像软件一样,电子表格在其整个生命周期中都在发生变化,从而导致易懂性和可维护性问题。本文将已知的代码气味适应电子表格公式。为此,我们列出了一系列度量标准,通过这些度量标准,我们可以检测到臭味的公式;一种可视化技术以在电子表格中突出显示这些公式,以及一种自动建议重构以解决气味的方法。我们在原型工具中实施了指标,可视化和重构建议技术,并在三项研究中评估了我们的方法。首先,我们分析EUSES电子表格语料库,以研究配方气味的发生。其次,我们分析了十个现实生活中的电子表格,并就所发现的气味采访了电子表格所有者。最后,我们为这十个电子表格生成重构建议并研究其含义。这些评估的结果表明,公式气味很常见,它们可以揭示电子表格公式中的实际错误和弱点,并且在简单的情况下可以对其进行重构。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号