kirancodes.me
To Proof Maintenance & Beyond!

Understanding understanding source code with functional magnetic resonance imaging

Janet Siegmund, Christian Kästner, Sven Apel, Chris Parnin, Anja Bethmann, Thomas Leich, Gunter Saake, André Brechmann

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?

BibTeX
@inproceedings{Siegmund-al:ICSE14,
  author    = {Janet Siegmund and
               Christian K{\"{a}}stner and
               Sven Apel and
               Chris Parnin and
               Anja Bethmann and
               Thomas Leich and
               Gunter Saake and
               Andr{\'{e}} Brechmann},
  title     = {Understanding understanding source code with functional magnetic resonance imaging},
  booktitle = {ICSE},
  pages     = {378--389},
  publisher = {{ACM}},
  year      = {2014},
}

Related papers