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 条
  • [1] HOW DOES ONE READ - STUDY OF EYE-MOVEMENT WHILE READING
    PERRIER, D
    BELIN, C
    ROUX, S
    LARMANDE, P
    JOURNAL FRANCAIS D OPHTALMOLOGIE, 1994, 17 (03): : 217 - 221
  • [2] Eye-movement benchmarks in Heritage Language reading
    Parshina, Olga
    Laurinavichyute, Anna K.
    Sekerina, Irina A.
    BILINGUALISM-LANGUAGE AND COGNITION, 2021, 24 (01) : 69 - 82
  • [3] Assessing code readability in Python']Python programming courses using eye-tracking
    Segedinac, Milan
    Savic, Goran
    Zeljkovic, Ivana
    Slivka, Jelena
    Konjovic, Zora
    COMPUTER APPLICATIONS IN ENGINEERING EDUCATION, 2024, 32 (01)
  • [4] Hot Code Patching in CPython']Python Supporting Edit-and-Continue Debugging in CPython']Python with Less Than 300 Lines of Code
    Henning, Johannes
    Stangl, David
    Niephaus, Fabio
    Kruck, Bastian
    Hirschfeld, Robert
    PROCEEDINGS OF THE 12TH WORKSHOP ON IMPLEMENTATION, COMPILATION AND OPTIMIZATION OF OBJECT-ORIENTED LANGUAGES, PROGRAMS AND SYSTEMS (ICOOOLPS' 19), 2019,
  • [5] DerLex: An eye-movement database of derived word reading in English
    Schmidtke, Daniel
    Van Dyke, Julie A.
    Kuperman, Victor
    BEHAVIOR RESEARCH METHODS, 2024, 57 (01)
  • [6] Distraction by deviant sounds during reading: An eye-movement study
    Vasilev, Martin R.
    Parmentier, Fabrice B. R.
    Angele, Bernhard
    Kirkby, Julie A.
    QUARTERLY JOURNAL OF EXPERIMENTAL PSYCHOLOGY, 2019, 72 (07) : 1863 - 1875
  • [7] Evaluation of Eye-Movement Metrics in a Software Debugging Task using GP3 Eye Tracker
    Kovari, Attila
    Katona, Jozsef
    Costescu, Cristina
    ACTA POLYTECHNICA HUNGARICA, 2020, 17 (02) : 57 - 76
  • [8] Attention and Eye-Movement Control in Reading: The Selective Reading Paradigm
    Reingold, Eyal M.
    Sheridan, Heather
    Meadmore, Katie L.
    Drieghe, Denis
    Liversedge, Simon P.
    JOURNAL OF EXPERIMENTAL PSYCHOLOGY-HUMAN PERCEPTION AND PERFORMANCE, 2016, 42 (12) : 2003 - 2020
  • [9] Towards a model of eye-movement control in Chinese reading
    Liu, Yanping
    Yu, Lili
    Reichle, Erik D.
    PSYCHONOMIC BULLETIN & REVIEW, 2024, : 493 - 527
  • [10] Expanding horizons of cross-linguistic research on reading: The Multilingual Eye-movement Corpus (MECO)
    Siegelman, Noam
    Schroeder, Sascha
    Acartuerk, Cengiz
    Ahn, Hee-Don
    Alexeeva, Svetlana
    Amenta, Simona
    Bertram, Raymond
    Bonandrini, Rolando
    Brysbaert, Marc
    Chernova, Daria
    Da Fonseca, Sara Maria
    Dirix, Nicolas
    Duyck, Wouter
    Fella, Argyro
    Frost, Ram
    Gattei, Carolina A.
    Kalaitzi, Areti
    Kwon, Nayoung
    Loo, Kaidi
    Marelli, Marco
    Papadopoulos, Timothy C.
    Protopapas, Athanassios
    Savo, Satu
    Shalom, Diego E.
    Slioussar, Natalia
    Stein, Roni
    Sui, Longjiao
    Taboh, Anali
    Tonnesen, Veronica
    Usal, Kerem Alp
    Kuperman, Victor
    BEHAVIOR RESEARCH METHODS, 2022, 54 (06) : 2843 - 2863