Metraipolis › archive › dc_c51a8ca14320

Comprehending Python Repetition Structures: An Eye-Tracking Study with Novice Developers — arXiv:2608.09875

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.09875
License (as archived)
CC0-1.0
Archived
2026-10-19T09:01:03.478Z
SHA-256 of the archived text
e135e9b6ea016e473a85a0bdd9badadd2635228dc61f8c4ba579626e2c8e4040
Stable URL of this page
https://metraipolis.com/documento/dc_c51a8ca14320

How to cite

Comprehending Python Repetition Structures: An Eye-Tracking Study with Novice Developers — arXiv:2608.09875 — arXiv (en), https://arxiv.org/abs/2608.09875 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_c51a8ca14320 (Metraipolis archive dc_c51a8ca14320, sha256 e135e9b6ea016e473a85a0bdd9badadd2635228dc61f8c4ba579626e2c8e4040)
BibTeX
@misc{dcc51a8ca14320,
  title = {Comprehending Python Repetition Structures: An Eye-Tracking Study with Novice Developers — arXiv:2608.09875},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.09875},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_c51a8ca14320; sha256 e135e9b6ea016e473a85a0bdd9badadd2635228dc61f8c4ba579626e2c8e4040},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.09875. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Code comprehension is central to software maintenance and evolution, yet different Python repetition structures may impose distinct cognitive demands. We conducted a controlled eye-tracking experiment with 32 undergraduate students with prior Python experience to compare comprehension of for loops, while loops, recursion, and list comprehensions (LCs). Participants solved six comprehension tasks in a Latin Square design while we measured completion behavior and eye-tracking metrics over full snippets and construct-specific Areas of Interest (AOIs). for loops showed the lowest visual effort. Relative to for, while loops increased AOI fixation duration by up to 97% and regression count by 114%, with regressions concentrated around counter management. Recursion showed a descriptive 50% increase in regressions, mainly between the base case and recursive call. LCs increased AOI time by 62.5% and fixation duration by 80.9%, with horizontal regressions suggesting dense token-by-token parsing. LC comparisons yielded the clearest statistically significant pairwise differences, while the combined comparison of all non-for structures was significant across all eye-tracking metrics. These findings provide process-level evidence that Python repetition structures induce distinct visual-effort patterns, with implications for readability, code review, refactoring, onboarding, and maintainability.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-11 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.09875 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T09:00:31.502Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-11?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).