Eye-movement indices of reading while debugging Python']Python source code

被引:0
作者
Dempsey, Jack [1 ]
Tsiola, Anna [2 ]
Bosch, Nigel [1 ,3 ]
Christianson, Kiel [1 ,4 ]
Stites, Mallory [5 ]
机构
[1] Univ Illinois, Dept Educ Psychol, Champaign, IL USA
[2] Univ Illinois, Dept Linguist, Champaign, IL USA
[3] Univ Illinois, Sch Informat Sci, Champaign, IL USA
[4] Univ Illinois, Beckman Inst Adv Sci & Technol, Urbana, IL USA
[5] Sandia Natl Labs, Albuquerque, NM USA
关键词
Eye-tracking; !text type='python']python[!/text; reading; programming languages; debugging; LEXICAL AMBIGUITY; SENTENCE COMPREHENSION; BRAIN POTENTIALS; FIXATION TIMES; GOOD-ENOUGH; PREDICTION; ERRORS; REPRESENTATIONS; PREDICTABILITY; RESOLUTION;
D O I
10.1080/20445911.2024.2447117
中图分类号
B84 [心理学];
学科分类号
04 ; 0402 ;
摘要
Unlike text reading, the eye-movement behaviours associated with reading Python, a computer programming language, are largely understudied through a psycholinguistic lens. A general understanding of the eye movements involved in reading while troubleshooting Python, and how these behaviours compare to proofreading text, is critical for developing educational interventions and interactive tools for helping programmers debug their code. These data may also highlight to what extent humans use their underlying text reading ability when reading source code. The current work provides a profile of global reading behaviours associated with reading Python source code for debugging purposes. To this end, we recorded experienced programmers' eye movements while they determined whether 21 different Python functions would produce the desired output, an incorrect output, or an error message. Some reading behaviours seem to mirror those found in text reading (e.g. effects of stimulus complexity), while others may be specific to reading code. Results suggest that semantic errors that produce undesired outputs in programming source code may influence early stages of processing, likely due to the largely top-down strategy employed by experienced programmers when reading source code. The findings are framed to invigorate discussion and further exploration into psycholinguistic analysis of human source code reading.
引用
收藏
页码:89 / 107
页数:19
相关论文
共 50 条
[31]   A tutorial on Bayesian inference for dynamical modeling of eye-movement control during reading [J].
Engbert, Ralf ;
Rabe, Maximilian M. .
JOURNAL OF MATHEMATICAL PSYCHOLOGY, 2024, 119
[32]   Mindless reading revisited: An analysis based on the SWIFT model of eye-movement control [J].
Nuthmann, Antje ;
Engbert, Ralf .
VISION RESEARCH, 2009, 49 (03) :322-336
[33]   Reading English-language haiku: An eye-movement study of the 'cut effect' [J].
Geyer, Thomas ;
Guenther, Franziska ;
Mueller, Hermann J. ;
Kacian, Jim ;
Liesefeld, Heinrich Rene ;
Pierides, Stella .
JOURNAL OF EYE MOVEMENT RESEARCH, 2020, 13 (02)
[34]   Eye-Movement Patterns in Picture Book Reading for Preschool Children with Hearing Loss [J].
Zhou, Wei ;
Bian, Xiaoying ;
Wang, Yifang .
INTERNATIONAL JOURNAL OF DISABILITY DEVELOPMENT AND EDUCATION, 2023, 70 (06) :930-945
[35]   Eye-Movement Modelling as a Tool to Foster Digital Reading Competencies and Misconception Change When Reading Webpages in L2 [J].
do Amaral, Juliana ;
Salmeron, Ladislao ;
Oliveira, Davi Alves .
JOURNAL OF COMPUTER ASSISTED LEARNING, 2025, 41 (04)
[36]   Prediction of text-and-diagram reading comprehension by eye-movement indicators: a longitudinal study in elementary schools [J].
Jian, Yu-Cin ;
Cheung, Leo Yuk Ting .
EUROPEAN JOURNAL OF PSYCHOLOGY OF EDUCATION, 2025, 40 (01)
[37]   Contributions of Reader- and Text-Level Characteristics to Eye-Movement Patterns During Passage Reading [J].
Kuperman, Victor ;
Matsuki, Kazunaga ;
Van Dyke, Julie A. .
JOURNAL OF EXPERIMENTAL PSYCHOLOGY-LEARNING MEMORY AND COGNITION, 2018, 44 (11) :1687-1713
[38]   Using E-Z Reader to examine the concurrent development of eye-movement control and reading skill [J].
Reichle, Erik D. ;
Liversedge, Simon P. ;
Drieghe, Denis ;
Blythe, Hazel I. ;
Joseph, Holly S. S. L. ;
White, Sarah J. ;
Rayner, Keith .
DEVELOPMENTAL REVIEW, 2013, 33 (02) :110-149
[39]   Using Eye-Movement Modelling Examples With Reading Strategies to Improve Adults' Reading Performances of Illustrated Texts [J].
Wu, Chao-Jung ;
Liu, Chia-Yu .
JOURNAL OF COMPUTER ASSISTED LEARNING, 2025, 41 (03)
[40]   Deep-learning-based reading eye-movement analysis for aiding biometric recognition [J].
Wang, Xiaoming ;
Zhao, Xinbo ;
Zhang, Yanning .
NEUROCOMPUTING, 2021, 444 :390-398