On Designing Programming Error Messages for Novices: Readability and its Constituent Factors
Paul Denny, James Prather, Brett A. Becker, Catherine Mooney, John Homer, Zachary C. Albrecht, Garrett B. Powell
Abstract
Programming error messages play an important role in learning to program. The cycle of program input and error message response completes a loop between the programmer and the compiler/interpreter and is a fundamental interaction between human and computer. However, error messages are notoriously problematic, especially for novices. Despite numerous guidelines citing the importance of message readability, there is little empirical research dedicated to understanding and assessing it. We report three related experiments investigating factors that influence programming error message readability. In the first two experiments we identify possible factors, and in the third we ask novice programmers to rate messages using scales derived from these factors. We find evidence that several key factors significantly affect message readability: message length, jargon use, sentence structure, and vocabulary. This provides novel empirical support for previously untested long-standing guidelines on message design, and informs future efforts to create readability metrics for programming error messages.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 413ffd81-0232-49b8-9abc-709d365376a6Cited by top-tier papers2
- "As an AI language model, I cannot": Investigating LLM Denials of User RequestsJoel Wester, Tim Schrills, Henning Pohl, Niels van BerkelCHI 2024 · 35 citations
- “Write in English, Nobody Understands Your Language Here”: A Study of Non-English Trends in Open-Source RepositoriesMasudul Hasan Masud Bhuiyan, Manish Kumar Bala Kumar, Cristian-Alexandru StaicuICSE 2026 · 1 citation
Related papers
- Demystifying "bad" error messages in data science librariesYida Tao, Zhihui Chen, Yepang Liu, Jifeng Xuan et al.FSE 2021 · 6 citations
- Exploring the Learnability of Program Synthesizers by Novice ProgrammersDhanya Jayagopal, Justin Lubin, Sarah E. ChasinsUIST 2022 · 40 citations
- Are They All Good? Studying Practitioners' Expectations on the Readability of Log MessagesZhenhao Li, An Ran Chen, Xing Hu, Xin Xia et al.ASE 2023 · 6 citations
- The Effects of System Interpretation Errors on Learning New Input MechanismsKevin C. Lam, Carl Gutwin, Madison Klarkowski, Andy CockburnCHI 2021 · 6 citations
- Listen to Developers! A Participatory Design Study on Security Warnings for Cryptographic APIsPeter Leo Gorski, Yasemin Acar, Luigi Lo Iacono, Sascha FahlCHI 2020 · 39 citations
