What Drives the Reading Order of Programmers? An Eye Tracking Study
Background: The way how programmers comprehend source code depends on several factors, including the source code itself and the programmer. Recent studies showed that novice programmers tend to read source code more like natural language text, whereas experts tend to follow the program execution flow. But, it is unknown how the linearity of source code and the comprehension strategy influence programmers’ linearity of reading order.
Objective: We replicate two previous studies with the aim of additionally providing empirical evidence on the influencing effects of linearity of source code and programmers’ comprehension strategy on linearity of reading order.
Methods: To understand the effects of linearity of source code on reading order, we conducted a non-exact replication of studies by Busjahn et al. and Peachock et al., which compared the reading order of novice and expert programmers. Like the original studies, we used an eye-tracker to record the eye movements of participants (12 novice and 19 intermediate programmers).
Results: In line with Busjahn et al. (but different from Peachock et al.), we found that experience modulates the reading behavior of participants. However, the linearity of source code has an even stronger effect on reading order than experience, whereas the comprehension strategy has a minor effect.
Implications: Our results demonstrate that studies on the reading behavior of programmers must carefully select source code snippets to control the influence of confounding factors. Furthermore, we identify a need for further studies on how programmers should structure source code to align it with their natural reading behavior to ease program comprehension.
Tue 14 Jul Times are displayed in time zone: (UTC) Coordinated Universal Time change
|15:00 - 15:12|
Gina BaiNorth Carolina State University, Joshua Kayani , Kathryn StoleeNorth Carolina State UniversityPre-print Media Attached
|15:12 - 15:24|
Norman PeitekLeibniz Institute for Neurobiology, Janet SiegmundTU Chemnitz, Sven ApelSaarland University & Saarland Informatics CampusPre-print Media Attached
|15:24 - 15:36|
Martín DiasUniversity of Chile, Diego OrellanaUniversity of Chile, Santiago VidalISISTAN-CONICET, Leonel MerinoUniversity of Stuttgart, Alexandre BergelUniversity of ChilePre-print Media Attached
|15:36 - 15:48|
Regina HebigUniversity of Gothenburg, Truong Ho-Quang, Rodi JolakChalmers | University of Gothenburg, Jan SchroederChalmers | University of Gothenburg, Linero HumbertoChalmers University of Technology, Ågren MagnusChalmers University of Technology, Salome MaroChalmers | University of GothenburgMedia Attached
|15:48 - 16:00|