- 6 August 2018
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 46 (4) , 442-462
Abstract
Program comprehension is an important, but hard to measure cognitive process. This makes it difficult to provide suitable programming languages, tools, or coding conventions to support developers in their everyday work. Here, we explore whether functional magnetic resonance imaging (fMRI) is feasible for soundly measuring program comprehension. To this end, we observed 17 participants inside an fMRI scanner while they were comprehending source code. The results show a clear, distinct activation of five brain regions, which are related to working memory, attention, and language processing, which all fit well to our understanding of program comprehension. Furthermore, we found reduced activity in the default mode network, indicating the cognitive effort necessary for program comprehension. We also observed that familiarity with Java as underlying programming language reduced cognitive effort during program comprehension. To gain confidence in the results and the method, we replicated the study with 11 new participants and largely confirmed our findings. Our results encourage us and, hopefully, others to use fMRI to observe programmers and, in the long run, answer questions, such as: How should we train programmers? Can we train someone to become an excellent programmer? How effective are new languages and tools for program comprehension?Keywords
Funding Information
- DFG (SI 2045/2-1, BR 2267/7-1)
- Bavarian State Ministry of Education, Science
- DFG (AP 206/4, AP 206/5, AP 206/6)
- National Science Foundation (1318808, 1552944)
- AFRL and DARPA (FA8750-16-2-0042)
- ERC (#203099)
- National Science Foundation (1755762)
This publication has 95 references indexed in Scilit:
- A review and synthesis of the first 20years of PET and fMRI studies of heard speech, spoken language and readingNeuroImage, 2012
- The Angular GyrusThe Neuroscientist, 2012
- The Neural Architecture of the Language Comprehension Network: Converging Evidence from Lesion and Connectivity AnalysesFrontiers in Systems Neuroscience, 2011
- Spatial Attention Evokes Similar Activation Patterns for Visual and Auditory StimuliJournal of Cognitive Neuroscience, 2010
- Where Is the Semantic System? A Critical Review and Meta-Analysis of 120 Functional Neuroimaging StudiesCerebral Cortex, 2009
- Hierarchical artificial grammar processing engages Broca's areaNeuroImage, 2008
- The role of fMRI in Cognitive Neuroscience: where do we stand?Current Opinion in Neurobiology, 2008
- Cortical Folding Patterns and Predicting CytoarchitectureCerebral Cortex, 2007
- Resolving sentence ambiguity with planning and working memory resources: Evidence from fMRINeuroImage, 2007
- The mind of expert motor performance is cool and focusedNeuroImage, 2007