Determining Differences in Reading Behavior Between Experts and Novices by Investigating Eye Movement on Source Code Constructs During a Bug Fixing Task

Salwa Aljehane, Bonita Sharif and Jonathan Maletic

Abstract

This research compares the eye movement of expert and novice programmers working on a bug fixing task. This comparison aims at investigating which source code elements programmers focus on when they review Java source code. Programmer code reading behaviors at the line and term levels are used to characterize the differences between experts and novices. The study analyzes programmers’ eye movements over identified source code areas using an existing eye tracking dataset of 12 experts and 10 novices. The results show that the difference between experts and novices is significant in source code element coverage. Specifically, novices read more method signatures, variable declarations, identifiers, and keywords compared to experts. However, experts are better at finishing the task using fewer source code elements when compared to novices. Moreover, programmers tend to focus on the method signatures the most while reading the code.

Venue
ETRA 2021
Volume
ACM Symposium on Eye Tracking Research and Applications: Short Papers
DOI
10.1145/3448018.3457424
PDF
https://dl.acm.org/doi/pdf/10.1145/3448018.3457424
Anthology ID
2021.etra-short.5

Cite

@inproceedings{aljehane-etal-2021-determining,
    title = {{Determining Differences in Reading Behavior Between Experts and Novices by Investigating Eye Movement on Source Code Constructs During a Bug Fixing Task}},
    author = {Salwa Aljehane and Bonita Sharif and Jonathan Maletic},
    booktitle = {ACM Symposium on Eye Tracking Research and Applications: Short Papers},
    isbn = {9781450383455},
    year = {2021},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3448018.3457424},
    url = {https://doi.org/10.1145/3448018.3457424},
    abstract = {This research compares the eye movement of expert and novice programmers working on a bug fixing task. This comparison aims at investigating which source code elements programmers focus on when they review Java source code. Programmer code reading behaviors at the line and term levels are used to characterize the differences between experts and novices. The study analyzes programmers’ eye movements over identified source code areas using an existing eye tracking dataset of 12 experts and 10 novices. The results show that the difference between experts and novices is significant in source code element coverage. Specifically, novices read more method signatures, variable declarations, identifiers, and keywords compared to experts. However, experts are better at finishing the task using fewer source code elements when compared to novices. Moreover, programmers tend to focus on the method signatures the most while reading the code.}
}