Title
Understanding understanding source code with functional magnetic resonance imaging
Abstract
Program comprehension is an important cognitive process that inherently eludes direct measurement. Thus, researchers are struggling with providing suitable programming languages, tools, or coding conventions to support developers in their everyday work. In this paper, we explore whether functional magnetic resonance imaging (fMRI), which is well established in cognitive neuroscience, is feasible to soundly measure program comprehension. In a controlled experiment, we observed 17 participants inside an fMRI scanner while they were comprehending short source-code snippets, which we contrasted with locating syntax errors. We found a clear, distinct activation pattern of five brain regions, which are related to working memory, attention, and language processing---all processes that fit well to our understanding of program comprehension. Our results encourage us and, hopefully, other researchers to use fMRI in future studies to measure program comprehension and, in the long run, answer questions, such as: Can we predict whether someone will be an excellent programmer? How effective are new languages and tools for program understanding? How should we train programmers?
Year
DOI
Venue
2014
10.1145/2568225.2568252
ICSE
Keywords
Field
DocType
experimentation,user/machine systems,human factors,functional magnetic resonance imaging,program comprehension
Cognitive neuroscience,Programmer,Programming language,Systems engineering,Computer science,Source code,Working memory,Human–computer interaction,Coding conventions,Cognition,Program comprehension,Syntax error
Conference
Citations 
PageRank 
References 
55
1.99
34
Authors
8
Name
Order
Citations
PageRank
Janet Siegmund133827.69
Christian Kästner2552.33
Sven Apel33980184.13
Chris Parnin494647.48
Anja Bethmann5703.31
Thomas Leich692558.39
Gunter Saake73255639.75
André Brechmann810813.43