首页> 外文会议>IEEE/ACM International Conference on Program Comprehension >Exploring Tools and Strategies Used During Regular Expression Composition Tasks
【24h】

Exploring Tools and Strategies Used During Regular Expression Composition Tasks

机译:探索在正则表达式组成任务期间使用的工具和策略

获取原文

摘要

Regular expressions are frequently found in programming projects. Studies have found that developers can accurately determine whether a string matches a regular expression. However, we still do not know the challenges associated with composing regular expressions. We conduct an exploratory case study to reveal the tools and strategies developers use during regular expression composition. In this study, 29 students are tasked with composing regular expressions that pass unit tests illustrating the intended behavior. The tasks are in Java and the Eclipse IDE was set up with JUnit tests. Participants had one hour to work and could use any Eclipse tools, web search, or web-based tools they desired. Screen-capture software recorded all interactions with browsers and the IDE. We analyzed the videos quantitatively by transcribing logs and extracting personas. Our results show that participants were 30% successful (28 of 94 attempts) at achieving a 100% pass rate on the unit tests. When participants used tools frequently, as in the case of the novice tester and the knowledgeable tester personas, or when they guess at a solution prior to searching, they are more likely to pass all the unit tests. We also found that compile errors often arise when participants searched for a result and copy/pasted the regular expression from another language into their Java files. These results point to future research into making regular expression composition easier for programmers, such as integrating visualization into the IDE to reduce context switching or providing language migration support when reusing regular expressions written in another language to reduce compile errors.
机译:正则表达式在编程项目经常发现。有研究发现,开发人员能够准确判断字符串是否与正则表达式匹配。但是,我们仍然不知道与构成正则表达式相关的挑战。我们进行了探索性的案例研究揭示开发商正则表达式组成过程中使用的工具和策略。在这项研究中,29名学生的任务是创作是通过单元测试说明预期行为正则表达式。任务是在Java和Eclipse IDE中设置了JUnit测试。参加者有一小时的工作,可以使用他们想要的任何Eclipse工具,网络搜索,或者基于网络的工具。屏幕捕捉软件记录浏览器和IDE的所有交互。我们通过定量转录日志和提取人物角色分析视频。我们的研究结果表明,在参与者实现在单元测试合格率100%分别为30%成功(94的28次尝试)。当参与者使用的工具频繁,作为新手测试仪和知识渊博的测试角色,或者当他们猜测之前搜索的解决方案的情况下,他们更容易通过所有的单元测试。我们还发现,编译错误经常出现当参与者搜索结果和复制/粘贴从另一种语言的正则表达式到他们的Java文件。这些结果指出了未来的研究使正则表达式成分更容易为程序员,如可视化集成到IDE中,以减少上下文切换或再使用其他语言编写,以减少编译错误的正则表达式时提供语言迁移支持。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号