Fixation-related potentials reveal that confusing program code elicits a late frontal positivity

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Bergum, Annabelle, Maurer, Anna-Maria, Peitek, Norman, Bader, Regine, Mecklinger, Axel, Demberg, Vera, Siegmund, Janet, Apel, Sven
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909010738806784
author Bergum, Annabelle
Maurer, Anna-Maria
Peitek, Norman
Bader, Regine
Mecklinger, Axel
Demberg, Vera
Siegmund, Janet
Apel, Sven
author_facet Bergum, Annabelle
Maurer, Anna-Maria
Peitek, Norman
Bader, Regine
Mecklinger, Axel
Demberg, Vera
Siegmund, Janet
Apel, Sven
contents As software pervades more and more areas of our professional and personal lives, there is an ever-increasing need to maintain software and for programmers to efficiently write and understand program code. In the first study of its kind, we analyze fixation-related potentials (FRPs) to explore the online processing of program code patterns that are confusing to programmers, but not to the computer (so-called atoms of confusion), and their underlying neurocognitive mechanisms in an ecologically valid setting. Relative to clean counterparts in program code without an atom of confusion, confusing code elicits a late frontal positivity of about 400 to 700 ms after first looking at the atom of confusion. This frontal positivity resembles an event-related potential (ERP) component found during natural language processing that is elicited by unexpected but plausible words in sentence context. Thus, we suggest that the brain engages similar neurocognitive mechanisms in response to unexpected and informative inputs in program code and in natural language. In both domains, these inputs update a comprehender's situation model, which is essential for information extraction from a quickly unfolding input. Our results have far-reaching implications for programming and pave the way for interdisciplinary collaborations between software engineering and psycholinguistics.
format Preprint
id arxiv_https___arxiv_org_abs_2412_10099
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Fixation-related potentials reveal that confusing program code elicits a late frontal positivity
Bergum, Annabelle
Maurer, Anna-Maria
Peitek, Norman
Bader, Regine
Mecklinger, Axel
Demberg, Vera
Siegmund, Janet
Apel, Sven
Software Engineering
As software pervades more and more areas of our professional and personal lives, there is an ever-increasing need to maintain software and for programmers to efficiently write and understand program code. In the first study of its kind, we analyze fixation-related potentials (FRPs) to explore the online processing of program code patterns that are confusing to programmers, but not to the computer (so-called atoms of confusion), and their underlying neurocognitive mechanisms in an ecologically valid setting. Relative to clean counterparts in program code without an atom of confusion, confusing code elicits a late frontal positivity of about 400 to 700 ms after first looking at the atom of confusion. This frontal positivity resembles an event-related potential (ERP) component found during natural language processing that is elicited by unexpected but plausible words in sentence context. Thus, we suggest that the brain engages similar neurocognitive mechanisms in response to unexpected and informative inputs in program code and in natural language. In both domains, these inputs update a comprehender's situation model, which is essential for information extraction from a quickly unfolding input. Our results have far-reaching implications for programming and pave the way for interdisciplinary collaborations between software engineering and psycholinguistics.
title Fixation-related potentials reveal that confusing program code elicits a late frontal positivity
topic Software Engineering
url https://arxiv.org/abs/2412.10099