【24h】

Refactoring meets spreadsheet formulas

机译:重构符合电子表格公式

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

摘要

The number of end-users who write spreadsheet programs is at least an order of magnitude larger than the number of trained programmers who write professional software. We studied a corpus of 3691 spreadsheets and we found that their formulas are riddled with the same smells that plague professional software: hardcoded constants, duplicated expressions, unnecessary complexity, and unsanitized input. These make spreadsheets difficult to read and expensive to maintain. Like automated refactoring in the object-oriented domain, spreadsheet refactoring can be transformative. In this paper we present seven refactorings for spreadsheet formulas implemented in RefBook, a plugin for Microsoft Excel. To evaluate the usefulness of RefBook, we employed three kinds of empirical methods. First, we conducted a User Survey with 28 Excel users to find out whether they preferred the refactored formulas. Second, we conducted a Controlled Experiment with the same 28 participants to measure their productivity when doing manual refactorings. Third, we performed a Retrospective Case Study on the EUSES Spreadsheet Corpus with 3691 spreadsheets to determine how often we could apply the refactorings supported by RefBook. The results show: (i) users prefer the improved quality of refactored formulas, (ii) RefBook is faster and more reliable than manual refactoring, and (iii) the refactorings are widely applicable. On average RefBook is able to apply the refactorings in less than half the time that users performed the refactorings manually. 92.54% of users introduced errors or new smells into the spreadsheet or were unable to complete the task.
机译:编写电子表格程序的最终用户数量至少比编写专业软件的经过训练的程序员数量大一个数量级。我们研究了3691个电子表格的语料库,发现它们的公式中充斥着困扰专业软件的气味:硬编码的常量,重复的表达式,不必要的复杂性和未经处理的输入。这些使电子表格难以阅读且维护成本高昂。像面向对象领域中的自动重构一样,电子表格重构也可以是变革性的。在本文中,我们介绍了在RefBook(Microsoft Excel的一个插件)中实现的电子表格公式的七个重构。为了评估RefBook的有用性,我们采用了三种经验方法。首先,我们对28位Excel用户进行了用户调查,以了解他们是否喜欢重构的公式。其次,我们与28位参与者进行了一次对照实验,以评估他们进行手动重构时的生产率。第三,我们对带有3691个电子表格的EUSES电子表格语料库进行了回顾性案例研究,以确定我们多久可以应用RefBook支持的重构。结果表明:(i)用户更喜欢重构公式的质量提高;(ii)RefBook比手动重构更快,更可靠,并且(iii)重构得到广泛应用。平均而言,RefBook能够在不到用户手动执行重构时间一半的时间内应用重构。 92.54%的用户在电子表格中引入了错误或新气味,或者无法完成任务。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号