Analyzing Reading Behavior across Source Code and Stack Overflow for Method and Class Summarization

Alaa Ismail, Zachary Kozak and Bonita Sharif

Abstract

Stack Overflow is a platform used by software developers to seek information or clarification on problems that might arise during their work. In this paper, we reexamine an existing eye-tracking dataset on Java method and class summarization, providing detailed insights into how developers read both Java source code and Stack Overflow. To do this, we generate detailed scarf plots for each task for both the Java and Stack Overflow contexts and qualitatively analyze the reading behavior for both correct and incorrect answers. In addition, we also provide information on search terms developers use on Stack Overflow. The results suggest that participants generally looked at the Java code the most, but had longer fixations on Stack Overflow. Results also show that participants’ gaze behavior within Stack Overflow and summary accuracy may depend on the information available within the platform, as participants’ scan paths and their accuracy scores varied across tasks. We also found that participants with more fixations on areas of interest and with transitions thereof had higher accuracy scores. This result was consistent within the Java code and Stack Overflow contexts.

Venue
ETRA 2026
Volume
Proceedings of the 2026 Symposium on Eye Tracking Research and Applications
DOI
10.1145/3797246.3806013
PDF
https://dl.acm.org/doi/pdf/10.1145/3797246.3806013
Anthology ID
2026.etra-short.84

Cite

@inproceedings{ismail-etal-2026-analyzing,
    title = {{Analyzing Reading Behavior across Source Code and Stack Overflow for Method and Class Summarization}},
    author = {Alaa Ismail and Zachary Kozak and Bonita Sharif},
    booktitle = {Proceedings of the 2026 Symposium on Eye Tracking Research and Applications},
    isbn = {9798400725197},
    year = {2026},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3797246.3806013},
    url = {https://doi.org/10.1145/3797246.3806013},
    abstract = {Stack Overflow is a platform used by software developers to seek information or clarification on problems that might arise during their work. In this paper, we reexamine an existing eye-tracking dataset on Java method and class summarization, providing detailed insights into how developers read both Java source code and Stack Overflow. To do this, we generate detailed scarf plots for each task for both the Java and Stack Overflow contexts and qualitatively analyze the reading behavior for both correct and incorrect answers. In addition, we also provide information on search terms developers use on Stack Overflow. The results suggest that participants generally looked at the Java code the most, but had longer fixations on Stack Overflow. Results also show that participants’ gaze behavior within Stack Overflow and summary accuracy may depend on the information available within the platform, as participants’ scan paths and their accuracy scores varied across tasks. We also found that participants with more fixations on areas of interest and with transitions thereof had higher accuracy scores. This result was consistent within the Java code and Stack Overflow contexts.}
}