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 条
[41]   Using reinforcement learning to understand the emergence of "intelligent" eye-movement behavior during reading [J].
Reichle, ED ;
Laurent, PA .
PSYCHOLOGICAL REVIEW, 2006, 113 (02) :390-408
[42]   Attention to verbal morphology in L2 Arabic reading: An eye-movement study [J].
Nassif, Lama ;
Huntley, Elizabeth ;
Mohamed, Ayman .
FOREIGN LANGUAGE ANNALS, 2022, 55 (03) :769-792
[43]   Scratching your tete over language-switched idioms: Evidence from eye-movement measures of reading [J].
Senaldi, Marco S. G. ;
Wei, Junyan ;
Gullifer, Jason W. ;
Titone, Debra .
MEMORY & COGNITION, 2022, 50 (06) :1230-1256
[44]   Eye movement prediction of individuals while reading based on deep neural networks [J].
Wang X. ;
Zhao X. .
Qinghua Daxue Xuebao/Journal of Tsinghua University, 2019, 59 (06) :468-475
[45]   Reading Instructions Facilitate Signaling Effect on Science Text for Young Readers: an Eye-Movement Study [J].
Yu-Cin Jian .
International Journal of Science and Mathematics Education, 2019, 17 :503-522
[46]   Scratching your tête over language-switched idioms: Evidence from eye-movement measures of reading [J].
Marco S. G. Senaldi ;
Junyan Wei ;
Jason W. Gullifer ;
Debra Titone .
Memory & Cognition, 2022, 50 :1230-1256
[47]   College students' mindsets and second-language academic text reading: an eye-movement study [J].
Jian, Yu-Cin ;
Kuo, Pin-Hsien ;
Chen, Ting-Ai .
CURRENT PSYCHOLOGY, 2025, 44 (10) :8905-8920
[48]   The E-Z Reader model of eye-movement control in reading: Comparisons to other models [J].
Reichle, ED ;
Rayner, K ;
Pollatsek, A .
BEHAVIORAL AND BRAIN SCIENCES, 2003, 26 (04) :445-+
[49]   Using eye-movement modelling examples to improve critical reading of multiple webpages on a conflicting topic [J].
Salmeron, Ladislao ;
Delgado, Pablo ;
Mason, Lucia .
JOURNAL OF COMPUTER ASSISTED LEARNING, 2020, 36 (06) :1038-1051
[50]   The Examination Task of Source-code Debugging Using GP3 Eye Tracker [J].
Katona, Jozsef ;
Kovari, Attila ;
Costescu, Cristina ;
Rosan, Adrian ;
Hathazi, Andrea ;
Heldal, Ilona ;
Helgesen, Carsten ;
Thill, Serge ;
Demeter, Robert .
2019 10TH IEEE INTERNATIONAL CONFERENCE ON COGNITIVE INFOCOMMUNICATIONS (COGINFOCOM 2019), 2019, :329-333