An Empirical Study on the Readability of Regular Expressions: Textual Versus Graphical

N. Hollmann, Stefan Hanenberg
{"title":"An Empirical Study on the Readability of Regular Expressions: Textual Versus Graphical","authors":"N. Hollmann, Stefan Hanenberg","doi":"10.1109/VISSOFT.2017.27","DOIUrl":null,"url":null,"abstract":"Although the readability of source code plays an important role in software construction, not many studies are available that do actually compare the impact of different notations on the readability of source code. Among the huge set of possible languages to be studied, one language is frequently used in education as well as in practice: regular expressions. This paper introduces a randomized controlled trial performed on 22 participants that compares two different notations for regular expressions: a textual and a graphical one. It shows that a regular expression's length as well as the notation (textual vs. graphical) has a strong effect on the regular expression's readability while the participants' background showed no measurable effect. On average, the time required by the participants to answer questions about shortest words using the textual representation was almost three times higher than the time it took for answering such questions using the graphical representation.","PeriodicalId":253313,"journal":{"name":"2017 IEEE Working Conference on Software Visualization (VISSOFT)","volume":"73 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"9","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2017 IEEE Working Conference on Software Visualization (VISSOFT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/VISSOFT.2017.27","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 9

Abstract

Although the readability of source code plays an important role in software construction, not many studies are available that do actually compare the impact of different notations on the readability of source code. Among the huge set of possible languages to be studied, one language is frequently used in education as well as in practice: regular expressions. This paper introduces a randomized controlled trial performed on 22 participants that compares two different notations for regular expressions: a textual and a graphical one. It shows that a regular expression's length as well as the notation (textual vs. graphical) has a strong effect on the regular expression's readability while the participants' background showed no measurable effect. On average, the time required by the participants to answer questions about shortest words using the textual representation was almost three times higher than the time it took for answering such questions using the graphical representation.
正则表达式可读性的实证研究:文本与图形
虽然源代码的可读性在软件构建中起着重要的作用,但是真正比较不同符号对源代码可读性影响的研究并不多。在大量可能需要学习的语言中,有一种语言在教育和实践中经常使用:正则表达式。本文介绍了一项对22名参与者进行的随机对照试验,该试验比较了正则表达式的两种不同表示法:文本表示法和图形表示法。结果表明,正则表达式的长度和符号(文本和图形)对正则表达式的可读性有很大的影响,而参与者的背景没有显示出可测量的影响。平均而言,参与者使用文本表示回答关于最短单词的问题所需的时间几乎是使用图形表示回答此类问题所需时间的三倍。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信