skip to main content
10.1145/2578153.2578211acmconferencesArticle/Chapter ViewAbstractPublication PagesetraConference Proceedingsconference-collections
research-article

What influences dwell time during source code reading?: analysis of element type and frequency as factors

Published: 26 March 2014 Publication History

Abstract

While knowledge about reading behavior in natural-language text is abundant, little is known about the visual attention distribution when reading source code of computer programs. Yet, this knowledge is important for teaching programming skills as well as designing IDEs and programming languages. We conducted a study in which 15 programmers with various expertise read short source codes and recorded their eye movements. In order to study attention distribution on code elements, we introduced the following procedure: First we (pre)-processed the eye movement data using log-transformation. Taking into account the word lengths, we then analyzed the time spent on different lexical elements. It shows that most attention is oriented towards understanding of identifiers, operators, keywords and literals, relatively little reading time is spent on separators. We further inspected the attention on keywords and provide a description of the gaze on these primary building blocks for any formal language. The analysis indicates that approaches from research on natural-language text reading can be applied to source code as well, however not without review.

References

[1]
Bednarik, R., Myller, N., Sutinen, E., and Tukiainen, M. 2006. Analyzing individual differences in program comprehension. Technology, Instruction, Cognition and Learning 3, 3/4, 205.
[2]
Bednarik, R. 2012. Expertise-dependent visual attention strategies develop over time during debugging with multiple code representations. Int. J. of Human-Computer Studies 70, 2, 143--155.
[3]
Binkley, D., Davis, M., Lawrie, D., Maletic, J. I., Morrell, C., and Sharif, B. 2012. The impact of identifier style on effort and comprehension. Empirical Software Engineering 18, 2 (May), 219--276.
[4]
Busjahn, T., and Schulte, C. 2013. The use of code reading in teaching programming. In Proc. of the 13th Koli Calling, ACM, 3--11.
[5]
Busjahn, T., Schulte, C., and Busjahn, A. 2011. Analysis of code reading to gain more insight in program comprehension. In Proc. of the 11th Koli Calling, ACM, 1--9.
[6]
Crosby, M. E., and Stelovsky, J. 1990. How do we read algorithms? a case study. Computer 23, 1, 24--35.
[7]
Crosby, M. E., Scholtz, J., and Wiedenbeck, S. 2002. The roles beacons play in comprehension for novice and expert programmers. In 14th Workshop of the PPIG, 58--73.
[8]
Gosling, J., Joy, B., Steele, G., Bracha, G., and Buckley, A. The java language specification. http://docs.oracle.com/javase/specs/jls/se7/html/index.html. {Accessed 2013-10-02}.
[9]
Holmqvist, K., Nyström, M., Andersson, R., Dewhurst, R., Jarodzka, H., and Van de Weijer, J. 2011. Eye tracking: A comprehensive guide to methods and measures. OUP Oxford.
[10]
Rayner, K., and Duffy, S. A. 1986. Lexical complexity and fixation times in reading: Effects of word frequency, verb complexity, and lexical ambiguity. Memory & Cognition 14, 3, 191--201.
[11]
Rayner, K. 1998. Eye movements in reading and information processing: 20 years of research. Psychological Bulletin 124, 3, 372--422.
[12]
Uwano, H., Nakamura, M., Monden, A., and Matsumoto, K.-i. 2007. Exploiting eye movements for evaluating reviewer's performance in software review. IEICE Trans. on Fundamentals of Electronics Communications and Computer Sciences E90-A, 10, 2290--2300.
[13]
von Mayrhauser, A., and Lang, S. 1999. A coding scheme to support systematic analysis of software comprehension. IEEE Trans. on Software Engineering 25, 4, 526--540.
[14]
Weinberg, G. M., and Schulman, E. L. 1974. Goals and performance in computer programming. Human Factors: The J. of the Human Factors and Ergonomics Society 16, 1 (Feb.), 70--77.
[15]
Wiedenbeck, S., Fix, V., and Scholtz, J. 1993. Characteristics of the mental representations of novice and expert programmers: an empirical study. Int. J. of Man-Machine Studies 39, 5, 793--812.

Cited By

View all
  • (2024)Analyzing and Interpreting Eye Movements in C++: Using Holistic Models of Image PerceptionProceedings of the 2024 Symposium on Eye Tracking Research and Applications10.1145/3649902.3655093(1-7)Online publication date: 4-Jun-2024
  • (2024)On Eye Tracking in Software EngineeringSN Computer Science10.1007/s42979-024-03045-35:6Online publication date: 26-Jul-2024
  • (2023)Impact and Prediction of AI Diagnostic Report Interpretation Type on Patient TrustFrontiers in Computing and Intelligent Systems10.54097/fcis.v3i3.85673:3(59-65)Online publication date: 17-May-2023
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
ETRA '14: Proceedings of the Symposium on Eye Tracking Research and Applications
March 2014
394 pages
ISBN:9781450327510
DOI:10.1145/2578153
Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored. For all other uses, contact the Owner/Author.

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 26 March 2014

Check for updates

Author Tags

  1. code reading
  2. eye tracking
  3. program comprehension

Qualifiers

  • Research-article

Conference

ETRA '14
ETRA '14: Eye Tracking Research and Applications
March 26 - 28, 2014
Florida, Safety Harbor

Acceptance Rates

Overall Acceptance Rate 69 of 137 submissions, 50%

Upcoming Conference

ETRA '25

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)21
  • Downloads (Last 6 weeks)3
Reflects downloads up to 01 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2024)Analyzing and Interpreting Eye Movements in C++: Using Holistic Models of Image PerceptionProceedings of the 2024 Symposium on Eye Tracking Research and Applications10.1145/3649902.3655093(1-7)Online publication date: 4-Jun-2024
  • (2024)On Eye Tracking in Software EngineeringSN Computer Science10.1007/s42979-024-03045-35:6Online publication date: 26-Jul-2024
  • (2023)Impact and Prediction of AI Diagnostic Report Interpretation Type on Patient TrustFrontiers in Computing and Intelligent Systems10.54097/fcis.v3i3.85673:3(59-65)Online publication date: 17-May-2023
  • (2023)An Eye Movement Study in Unconventional Usage of Different Software ToolsSensors10.3390/s2308382323:8(3823)Online publication date: 8-Apr-2023
  • (2023)An Eye Tracking Study on MISRA C Coding GuidelinesProceedings of the 5th European Conference on Software Engineering Education10.1145/3593663.3593671(130-137)Online publication date: 19-Jun-2023
  • (2023)Studying Developer Eye Movements to Measure Cognitive Workload and Visual Effort for Expertise AssessmentProceedings of the ACM on Human-Computer Interaction10.1145/35911357:ETRA(1-18)Online publication date: 18-May-2023
  • (2023)Visual Expertise in Code ReviewsProceedings of the 2023 Symposium on Eye Tracking Research and Applications10.1145/3588015.3589189(1-7)Online publication date: 30-May-2023
  • (2023)Logistics, Affordances, and Evaluation of Build ProgrammingProceedings of the 54th ACM Technical Symposium on Computer Science Education V. 110.1145/3545945.3569756(179-185)Online publication date: 2-Mar-2023
  • (2022)Value Trace Problems for Code Reading Study in C ProgrammingAdvances in Science, Technology and Engineering Systems Journal10.25046/aj0701037:1(14-26)Online publication date: Jan-2022
  • (2022)UsyBus: A Communication Framework among Reusable Agents integrating Eye-Tracking in Interactive ApplicationsProceedings of the ACM on Human-Computer Interaction10.1145/35322076:EICS(1-36)Online publication date: 17-Jun-2022
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media