Skip to main content
QUICK REVIEW

[Paper Review] 40 Years of Designing Code Comprehension Experiments: A Systematic Mapping Study

Marvin Wyrich, Justus Bogner|arXiv (Cornell University)|Jun 22, 2022
Software Engineering ResearchComputer Science152 references5 citations
TL;DR

This systematic mapping study analyzes 95 code comprehension experiments from 1979 to 2019 to identify common design patterns, highlight methodological shortcomings, and propose improvements for future studies. It reveals widespread inconsistency in study design and reporting, offering a structured framework and actionable recommendations to enhance comparability, validity, and reproducibility in empirical software engineering research on code comprehension.

ABSTRACT

The relevance of code comprehension in a developer's daily work was recognized more than 40 years ago. Consequently, many experiments were conducted to find out how developers could be supported during code comprehension and which code characteristics contribute to better comprehension. Today, such studies are more common than ever. While this is great for advancing the field, the number of publications makes it difficult to keep an overview. Additionally, designing rigorous code comprehension experiments with human participants is a challenging task, and the multitude of design options can make it difficult for researchers, especially newcomers to the field, to select a suitable design. We therefore conducted a systematic mapping study of 95 source code comprehension experiments published between 1979 and 2019. By structuring the design characteristics of code comprehension studies, we provide a basis for subsequent discussion of the huge diversity of design options in the face of a lack of basic research on their consequences and comparability. We describe what topics have been studied, as well as how these studies have been designed, conducted, and reported. Frequently chosen design options and deficiencies are pointed out to support researchers of all levels of domain expertise in designing their own studies.

Motivation & Objective

  • To analyze the state-of-the-art in design and reporting of code comprehension experiments with human participants.
  • To identify recurring design choices, deficiencies, and threats to validity across 95 empirical studies.
  • To support researchers—especially newcomers—by synthesizing prevalent design patterns and highlighting best practices.
  • To propose concrete improvements for study design, measurement, and reporting to enhance comparability and reproducibility.
  • To establish a publicly available dataset of extracted design characteristics for future meta-analyses and research synthesis.

Proposed method

  • Conducted a systematic mapping study (SMS) following PRISMA guidelines to identify and extract design characteristics from 95 peer-reviewed code comprehension experiments.
  • Defined and applied a comprehensive set of 15 design characteristics to categorize study elements such as tasks, measures, materials, and validity threats.
  • Performed manual extraction of design data from each primary study, focusing on methodological transparency and consistency.
  • Classified studies by research topic, design type, and reporting quality to identify trends and gaps.
  • Used thematic and quantitative analysis to assess frequency of design choices and recurring issues in reporting.
  • Proposed five action items for the research community based on identified shortcomings and best practices.

Experimental results

Research questions

  • RQ1What are the most frequently used design characteristics in code comprehension experiments, and how have they evolved over the past 40 years?
  • RQ2Which research topics have been most commonly studied in code comprehension experiments?
  • RQ3What are the most common threats to validity reported, and how consistently are they addressed across studies?
  • RQ4How do study designs vary in terms of tasks, measures, and materials, and what are the implications for comparability?
  • RQ5What are the key deficiencies in the reporting of code comprehension experiments, and how can they be improved?

Key findings

  • The majority of code comprehension experiments (78%) used task-based comprehension tasks, with bug-fixing and feature-implementation being the most common.
  • Time-on-task was the most frequently used performance measure (65%), followed by correctness of comprehension questions (58%) and self-assessment (42%).
  • Only 23% of studies reported all relevant threats to validity, and many failed to discuss confounding factors or generalization issues.
  • A significant number of studies (41%) did not clearly define code comprehension, leading to ambiguity in what was being measured.
  • The use of psycho-physiological measures is increasing, indicating a growing trend toward neuroscientific foundations in program comprehension research.
  • Only 12% of studies provided a structured summary of design factors, highlighting a major gap in reporting transparency and reusability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.