How programmers read regular code: a controlled experiment using eye tracking
Ahmad Jbara,Dror G. Feitelson +1 more
- 16 May 2015
- pp 244-254
TL;DR: Eye tracking is used to measure the time and effort spent reading and understanding regular code and 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.
read more
Abstract: 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 an irregular one with the same functionality, despite being 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 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 or cubic 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.
read more
Chat with Paper
AI Agents for this Paper
Find similar papers on Google Scholar, PubMed and Arxiv
Write a critical review of this paper
Analyze citations of this paper to find unaddressed research gaps
Citations
A Survey on the Usage of Eye-Tracking in Computer Programming
TL;DR: This mapping study identifies and reports on 63 studies, published between 1990 and June 2017, collected and gathered via manual search on digital libraries and databases related to computer science and computer engineering, finding Java language and Unified Modeling Language (UML) representation to be the most used materials.
Brain and autonomic nervous system activity measurement in software engineering: A systematic literature review
TL;DR: A systematic literature review (SLR) of the existing NeuroSE literature revealed that the number of authors publishing NeuroSE research is still relatively small, yet high quality contributions exist constituting a valuable basis for future studies.
53
Linking code readability, structure, and comprehension among novices: it's complicated
Eliane Wiese,Anna N. Rafferty,Armando Fox +2 more
- 27 May 2019
TL;DR: Novices may benefit from lightweight tools that identify common patterns and suggest an "ex expert" solution, while helping them see that the "expert" solution is more readable than they think.
39
Indentation: simply a matter of style or support for program comprehension?
Jennifer Bauer,Janet Siegmund,Norman Peitek,Johannes C. Hofmeister,Sven Apel +4 more
- 25 May 2019
TL;DR: This paper presents empirical evidence for the suggested level of indentation made by many style guides, and modernization of the original experiment design is a promising starting point for future studies in this field.
34
Commenting source code: is it worth it for small programming tasks?
TL;DR: The results indicate that comments seem to be considered more important in previous studies and by participants than they are for small programming tasks, while other mechanisms, such as proper identifiers, are considered more helpful by participants and they also emphasize the necessity of comments in certain situations.
30
References
A Complexity Measure
TL;DR: Several properties of the graph-theoretic complexity are proved which show, for example, that complexity is independent of physical size and complexity depends only on the decision structure of a program.
6K
•Book
A complexity measure
Thomas J. McCabe
- 04 Oct 1993
TL;DR: In this paper, a graph-theoretic complexity measure for managing and controlling program complexity is presented. But the complexity is independent of physical size, and complexity depends only on the decision structure of a program.
5.1K
A theory of reading: From eye fixations to comprehension.
TL;DR: A model of reading comprehension that accounts for the allocation of eye fixations of college students reading scientific passages is presented, embedded in a theoretical framework capable of accommodating the flexibility of reading.
3.8K
Sequence logos: a new way to display consensus sequences
Thomas D. Schneider,R M Stephens +1 more
TL;DR: From these 'sequence logos', one can determine not only the consensus sequence but also the relative frequency of bases and the information content at every position in a site or sequence.
3.6K
•Book
Software Metrics: A Rigorous and Practical Approach
Norman Fenton,Shari Lawrence Pfleeger +1 more
- 01 Jan 2013
TL;DR: The Second Edition of Software Metrics provides an up-to-date, coherent, and rigorous framework for controlling, managing, and predicting software development processes.
3.1K
Related Papers (5)
J. M. Neighbors
- 23 Apr 1996
Vincenzo Arceri,Isabella Mastroeni +1 more
- 21 Jan 2021
M.A.E. Beaumont,D. Jackson +1 more
- 01 Sep 1998