Asee peer logo

A Comparison of Novice Coders' Approaches to Reading Code: An Eye-tracking Study

Download Paper |

Conference

2021 ASEE Virtual Annual Conference Content Access

Location

Virtual Conference

Publication Date

July 26, 2021

Start Date

July 26, 2021

End Date

July 19, 2022

Conference Session

Undergraduate Students' Development of Computational and Programming Skills

Tagged Division

Educational Research and Methods

Page Count

15

DOI

10.18260/1-2--36567

Permanent URL

https://strategy.asee.org/36567

Download Count

543

Request a correction

Paper Authors

biography

Geoffrey L. Herman University of Illinois at Urbana-Champaign Orcid 16x16 orcid.org/0000-0002-9501-2295

visit author page

Dr. Geoffrey L. Herman is a teaching associate professor with the Deprartment of Computer Science at the University of Illinois at Urbana-Champaign. He also has a courtesy appointment as a research assistant professor with the Department of Curriculum & Instruction. He earned his Ph.D. in Electrical and Computer Engineering from the University of Illinois at Urbana-Champaign as a Mavis Future Faculty Fellow and conducted postdoctoral research with Ruth Streveler in the School of Engineering Education at Purdue University. His research interests include creating systems for sustainable improvement in engineering education, conceptual change and development in engineering students, and change in faculty beliefs about teaching and learning. He is a member of the Computing Research Association - Education steering commitee.

visit author page

author page

Sofia Meyers University of Illinois at Urbana-Champaign

author page

Sarah-Elizabeth Deshaies University of Illinois at Urbana-Champaign Orcid 16x16 orcid.org/0000-0002-9328-2435

Download Paper |

Abstract

We seek to describe how students' code reading strategies change as they gain experience with programming. As an individual gains expertise in a domain, their ability to find information in domain-relevant displays improves. This improvement is often accompanied by an increased focus on problem-relevant portions of a display as measured by eye gaze duration. Prior eye-tracking studies in programming have suggested that expert programmers focus on "beacons" such as keywords or function names, but these studies have relied on small sample sizes and comparing students with professional programmers. In this study, we compared the eye gaze patterns of 56 complete novices (students who had never studied programming after a brief 30-minute instructional intervention) and 34 experienced novices (students who had taken at least three programming courses) as they read code. While experienced novices generally spent less time tracing code than complete novices, they spent more time when tracing complex iterations. The majority of complete novices demonstrated an understanding of the assignment operator and conditional statements but almost none demonstrated an intuitive understanding of iteration. Further analysis needs to investigate differences in the order of eye gazes and the role of code complexity in eye gaze patterns.

Herman, G. L., & Meyers, S., & Deshaies, S. (2021, July), A Comparison of Novice Coders' Approaches to Reading Code: An Eye-tracking Study Paper presented at 2021 ASEE Virtual Annual Conference Content Access, Virtual Conference. 10.18260/1-2--36567

ASEE holds the copyright on this document. It may be read by the public free of charge. Authors may archive their work on personal websites or in institutional repositories with the following citation: © 2021 American Society for Engineering Education. Other scholars may excerpt or quote from these materials with the same citation. When excerpting or quoting from Conference Proceedings, authors should, in addition to noting the ASEE copyright, list all the original authors and their institutions and name the host city of the conference. - Last updated April 1, 2015