arrow
返回

How programmers read regular code: a controlled experiment using eye tracking

delete2016-11-21
delete39
PRE
AI
Ahmad Jbara 封面图
Ahmad Jbara (Ahmad Jbara) *
Dror G. Feitelson 封面图
Dror G. Feitelson (Dror G. Feitelson)
DOI:10.1007/s10664-016-9477-xdelete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Regular code, which includes repetitions of the same basic pattern, has been shown to have an effect on code comprehension: a regular function can be just as easy to comprehend as a non-regular one with the same functionality, despite being significantly longer and including more control constructs. It has been speculated that this effect is due to leveraging the understanding of the first instances to ease the understanding of repeated instances of the pattern. To verify and quantify this effect, we use eye tracking to measure the time and effort spent reading and understanding regular code. The experimental subjects were 18 students and 2 faculty members. The results are that time and effort invested in the initial code segments are indeed much larger than those spent on the later ones, and the decay in effort can be modeled by an exponential model. This shows that syntactic code complexity metrics (such as LOC and MCC) need to be made context-sensitive, e.g. by giving reduced weight to repeated segments according to their place in the sequence. However, it is not the case that repeated code segments are actually read more and more quickly. Rather, initial code segments receive more focus and are looked at more times, while later ones may be only skimmed. Further, a few recurring reading patterns have been identified, which together indicate that in general code reading is far from being purely linear, and exhibits significant variability across experimental subjects.
Keyword:
Eye-tracking
Controlled experiment
Code regularity
Software complexity
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

An eye tracking study assessing source code readability rules for program comprehension评估程序理解的源代码可读性规则的眼动追踪研究
err2024-10-05
err0
PREAI
errPark, Kang-il; Johnson, Jack; Peterson, Cole S.; Yedla, Nishitha; Baysinger, Isaac; Aponte, Jairo; Sharif, Bonita
err分享
err收藏
An eye-tracking study of how color coding affects multimedia learning
err2009-09-01
err160
PREAI
errOzcelik, Erol; Karakus, Turkan; Kursun, Engin; Cagiltay, Kursat
err分享
err收藏
An Eye-Tracking Study on the Use of Split/Unified Code Change Views for Bug Detection
err2023-01-01
err0
errOAAI
errAlcocer, Juan Pablo Sandoval; Cossio-Chavalier, Alejandra; Rojas-Stambuk, Tiara; Merino, Leonel
err分享
err收藏

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
6.4K

机构

H
hebrew university of jerusalem
学者数:
1.3K
论文数: 507
被引数: 1.5W
引用论文

引用论文

The structure of an antigenic determinant in a protein
errCell
IF0
err1984-07-01
err0
PREAI
errIan A. Wilson; Henry L. Niman; Richard A. Houghten; Andrew R. Cherenson; Michael L. Connolly; Richard A. Lerner
err分享
err收藏
Thermodynamics of Mixing Polymethylene and Polyisobutylene
err2002-05-01
err0
PREAI
errP. J. Flory; B. E. Eichinger; R. A. Orwoll
err分享
err收藏
err分享
err收藏
A conceptual model for pancake-ice formation in a wave field
err2017-09-14
err0
errOAAI
errHayley H. Shen; Stephen F. Ackley; Mark A. Hopkins
err分享
err收藏
err分享
err收藏
err分享
err收藏
AUTHOR REPLY
err2022-11-01
err0
PREAI
errRutul D. Patel; Justin Loloi; Kara L. Watts
err分享
err收藏
学者 查看更多内容