Evaluating Code Readability and Legibility: An Examination of Human-centric Studies
Not on the map. Why?
Abstract (arXiv)
Reading code is an essential activity in software maintenance and evolution. Several studies with human subjects have investigated how different factors, such as the employed programming constructs and naming conventions, can impact code readability, i.e., what makes a program easier or harder to read and apprehend by developers, and code legibility, i.e., what influences the ease of identifying elements of a program. These studies evaluate readability and legibility by means of different comprehension tasks and response variables. In this paper, we examine these tasks and variables in studies that compare programming constructs, coding idioms, naming conventions, and formatting guidelines, e.g., recursive vs. iterative code. To that end, we have conducted a systematic literature review where we found 54 relevant papers. Most of these studies evaluate code readability and legibility by measuring the correctness of the subjects' results (83.3%) or simply asking their opinions (55.6%). Some studies (16.7%) rely exclusively on the latter variable.There are still few studies that monitor subjects' physical signs, such as brain activation regions (5%). Moreover, our study shows that some variables are multi-faceted. For instance, correctness can be measured as the ability to predict the output of a program, answer questions about its behavior, or recall parts of it. These results make it clear that different evaluation approaches require different competencies from subjects, e.g., tracing the program vs. summarizing its goal vs. memorizing its text. To assist researchers in the design of new studies and improve our comprehension of existing ones, we model program comprehension as a learning activity by adapting a preexisting learning taxonomy. This adaptation indicates that some competencies are often exercised in these evaluations whereas others are rarely targeted.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). First posted on arXiv 2 Oct 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 2; 2026: 2.
8 papers.
- 2024Prover-Verifier Games improve legibility of LLM outputscited by 85
- 2024Beyond Correctness: Benchmarking Multi-dimensional Code Generation for Large Language Modelscited by 10
- 2023Assessing the Interpretability of Programmatic Policies with Large Language Modelscited by 3
- 2026Basic Legibility Protocols Improve Trusted Monitoringcited by 3
- 2025See What I Mean? CUE: A Cognitive Model of Understanding Explanationscited by 2
- 2024Predicting the Understandability of Computational Notebooks through Code Metrics Analysiscited by 0
- 2025Towards Open Standards for Systemic Complexity in Digital Forensicscited by 0
- 2026BUILD-AND-FIND: An Effort-Aware Protocol for Evaluating Agent-Managed Codebasescited by 0
- 2026BUILD-AND-FIND: An Effort-Aware Protocol for Evaluating Agent-Managed Codebases7 May 2026
- 2026Basic Legibility Protocols Improve Trusted Monitoring9 Feb 2026
- 2025Towards Open Standards for Systemic Complexity in Digital Forensics15 Dec 2025
- 2025See What I Mean? CUE: A Cognitive Model of Understanding Explanations9 May 2025
- 2024Prover-Verifier Games improve legibility of LLM outputs18 Jul 2024
- 2024Beyond Correctness: Benchmarking Multi-dimensional Code Generation for Large Language Models16 Jul 2024
- 2024Predicting the Understandability of Computational Notebooks through Code Metrics Analysis16 Jun 2024
- 2023Assessing the Interpretability of Programmatic Policies with Large Language Models12 Nov 2023