共 50 条
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 条