Eye-Tracking Insights into the Effects of Type Annotations and Identifier Naming

Understanding and modifying source code is a cognitively demanding task shaped by how the code is structured and presented. Prior work has shown that both identifier naming and type annotations can influence program comprehension, yet findings on their in dividual effects remain mixed. This study focuses on how these two aspects interact in influencing program comprehension, visual attention, and subjective perceptions of code comprehensibility. We conducted a controlled eye-tracking experiment with 40 participants who were asked to understand 20 Python code snippets. Our results reveal an interesting dichotomy between objective and subjective findings. Objectively, type annotations slightly slow down developers, but otherwise have almost no statistically significant effect on behavior, visual attention, or subjective perceptions, even when combining them with the meaningfulness of identifier naming. Subjectively, however, nearly all participants felt that type annotations helped with program comprehension. Overall, our findings suggest that type annotations—and their interaction with identifier names—do not generally introduce measurable overhead, but depending on the code snippet and individual participant, may increase developers’ sense of certainty and clarity.

Authors

Institutions

Publication Details

Journal
Open Access CRIS of the University of Bern
Published
2026-03-16
DOI
https://doi.org/10.48620/96114
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Eye-Tracking Insights into the Effects of Type Annotations and Identifier Naming

Annabelle Bergum, Marvin Wyrich, Nils Alznauer, Youssef Abdelsalam et al.
Open Access CRIS of the University of Bern
Software Engineering Research
article

Eye-Tracking Insights into the Effects of Type Annotations and Identifier Naming

Annabelle Bergum, Marvin Wyrich, Nils Alznauer, Youssef Abdelsalam, Sven Apel, Norman Peitek
article en

Abstract

Understanding and modifying source code is a cognitively demanding task shaped by how the code is structured and presented. Prior work has shown that both identifier naming and type annotations can influence program comprehension, yet findings on their in dividual effects remain mixed. This study focuses on how these two aspects interact in influencing program comprehension, visual attention, and subjective perceptions of code comprehensibility. We conducted a controlled eye-tracking experiment with 40 participants who were asked to understand 20 Python code snippets. Our results reveal an interesting dichotomy between objective and subjective findings. Objectively, type annotations slightly slow down developers, but otherwise have almost no statistically significant effect on behavior, visual attention, or subjective perceptions, even when combining them with the meaningfulness of identifier naming. Subjectively, however, nearly all participants felt that type annotations helped with program comprehension. Overall, our findings suggest that type annotations—and their interaction with identifier names—do not generally introduce measurable overhead, but depending on the code snippet and individual participant, may increase developers’ sense of certainty and clarity.

Open Access CRIS of the University of Bern
Institut für ökologische Wirtschaftsforschung (AT)
Quality Education
Openalex Percentile: Top 25%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Eye-Tracking Insights into the Effects of Type Annotations and Identifier Naming — Annabelle Bergum, Marvin Wyrich, et al. · Open Access CRIS of the University of Bern (2026) | TGRS Research Map | TGRS