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 条
[21]   Reading and Visual Processing in Greek Dyslexic Children: An Eye-Movement Study [J].
Hatzidaki, Anna ;
Gianneli, Maria ;
Petrakis, Eftichis ;
Makaronas, Nikolaos ;
Aslanides, Ioannis M. .
DYSLEXIA, 2011, 17 (01) :85-104
[22]   Constructing Semantic Networks of Comprehension from Eye-movement During Reading [J].
Al Madi, Naser S. ;
Khan, Javed I. .
2018 IEEE 12TH INTERNATIONAL CONFERENCE ON SEMANTIC COMPUTING (ICSC), 2018, :49-55
[23]   Tracking students' visual attention on manga-based interactive e-book while reading: an eye-movement approach [J].
Wang, Chun-Chia ;
Hung, Jason C. ;
Chen, Shih-Nung ;
Chang, Hsuan-Pu .
MULTIMEDIA TOOLS AND APPLICATIONS, 2019, 78 (04) :4813-4834
[24]   Tracking students’ visual attention on manga-based interactive e-book while reading: an eye-movement approach [J].
Chun-Chia Wang ;
Jason C. Hung ;
Shih-Nung Chen ;
Hsuan-Pu Chang .
Multimedia Tools and Applications, 2019, 78 :4813-4834
[25]   Reading Instructions Facilitate Signaling Effect on Science Text for Young Readers: an Eye-Movement Study [J].
Jian, Yu-Cin .
INTERNATIONAL JOURNAL OF SCIENCE AND MATHEMATICS EDUCATION, 2019, 17 (03) :503-522
[26]   Less Direct, More Analytical: Eye-Movement Measures of L2 Idiom Reading [J].
Senaldi, Marco S. G. ;
Titone, Debra A. .
LANGUAGES, 2022, 7 (02)
[27]   Expanding horizons of cross-linguistic research on reading: The Multilingual Eye-movement Corpus (MECO) [J].
Noam Siegelman ;
Sascha Schroeder ;
Cengiz Acartürk ;
Hee-Don Ahn ;
Svetlana Alexeeva ;
Simona Amenta ;
Raymond Bertram ;
Rolando Bonandrini ;
Marc Brysbaert ;
Daria Chernova ;
Sara Maria Da Fonseca ;
Nicolas Dirix ;
Wouter Duyck ;
Argyro Fella ;
Ram Frost ;
Carolina A. Gattei ;
Areti Kalaitzi ;
Nayoung Kwon ;
Kaidi Lõo ;
Marco Marelli ;
Timothy C. Papadopoulos ;
Athanassios Protopapas ;
Satu Savo ;
Diego E. Shalom ;
Natalia Slioussar ;
Roni Stein ;
Longjiao Sui ;
Analí Taboh ;
Veronica Tønnesen ;
Kerem Alp Usal ;
Victor Kuperman .
Behavior Research Methods, 2022, 54 :2843-2863
[28]   Relationship Between Eye-Movement Patterns, Cognitive Load, and Reading Ability in Children with Reading Difficulties [J].
Aya Ozeri-Rotstain ;
Ifaat Shachaf ;
Rola Farah ;
Tzipi Horowitz-Kraus .
Journal of Psycholinguistic Research, 2020, 49 :491-507
[29]   Relationship Between Eye-Movement Patterns, Cognitive Load, and Reading Ability in Children with Reading Difficulties [J].
Ozeri-Rotstain, Aya ;
Shachaf, Ifaat ;
Farah, Rola ;
Horowitz-Kraus, Tzipi .
JOURNAL OF PSYCHOLINGUISTIC RESEARCH, 2020, 49 (03) :491-507
[30]   Bayesian parameter estimation for the SWIFT model of eye-movement control during reading [J].
Seelig, Stefan A. ;
Rabe, Maximilian M. ;
Malem-Shinitski, Noa ;
Risse, Sarah ;
Reich, Sebastian ;
Engbert, Ralf .
JOURNAL OF MATHEMATICAL PSYCHOLOGY, 2020, 95