Code Reading Among Students With ADHD Symptoms: An Exploratory Eye-Tracking Study

Abstract

Research on program comprehension has extensively studied how developers read source code, but has rarely examined how attention-related neurodivergence is associated with code-reading behavior. We conducted an exploratory eyetracking study with 60 computer science students to examine the relationship between ADHD symptom screening status and code comprehension. Participants were classified using the ASRS v1.1 screener as ASRS-positive, indicating elevated adult ADHD symptoms (n = 31), or ASRS-negative (n = 29). Participants read Java code snippets while we measured task outcomes, visual attention to code structures, and line-level navigation patterns. Task accuracy, completion time, and self-reported confidence did not differ consistently between groups. However, ASRSpositive participants tended to show lower visual engagement with exception-handling and return-statement lines. Their gaze also tended to be more concentrated on the same code lines, while they revisited a smaller proportion of the lines they viewed. We suggest that behavioral process measures reveal attention-related differences in program comprehension that task performance alone may not capture. Findings inform inclusive programming education, tool design, and software engineering research.

Publication
The Proceedings of the IEEE/ACM 49th International Conference on Software Engineering
Anthony S. Peruma
Anthony S. Peruma
Assistant Professor

My research interests include program comprehension and software refactoring.