Developers talking about code quality
Jürgen Börstler, Kwabena Ebo Bennin, Sara Hooshangi et al. · Empirical Software Engineering · 2023
Abstract There are many aspects of code quality, some of which are difficult to capture or to measure. Despite the importance of software quality, there is a lack of commonly accepted measures or indicators for code quality that can be linked to quality attributes. We investigate software developers’ perceptions of source code quality and the practices they recommend to achieve these qualities. We analyze data from semi-structured interviews with 34 professional software developers, programming teachers and students from Europe and the U.S. For the interviews, participants were asked to bring code examples to exemplify what they consider good and bad code, respectively. Readability and structure were used most commonly as defining properties for quality code. Together with documentation, they were also suggested as the most common target properties for quality improvement. When discussing actual code, developers focused on structure, comprehensibility and readability as quality properties. When analyzing relationships between properties, the most commonly talked about target property was comprehensibility. Documentation, structure and readability were named most frequently as source properties to achieve good comprehensibility. Some of the most important source code properties contributing to code quality as perceived by developers lack clear definitions and are difficult to capture. More research is therefore necessary to measure the structure, comprehensibility and readability of code in ways that matter for developers and to relate these measures of code structure, comprehensibility and readability to common software quality attributes.
Cited by 30 works. doi:10.1007/s10664-023-10381-0 Open-access PDF
Authors
- Jürgen Börstler
- Kwabena Ebo Bennin
- Sara Hooshangi
- Johan T. Jeuring
- Hieke Keuning
- Carsten Kleiner
- Bonnie MacKellar
- Rodrigo Duran
- Harald Störrle
- Daniel Toll
- Jelle van Assema
References
- Cognitive Load Theory
- Sample sizes for saturation in qualitative research: A systematic review of empirical tests
- Data Mining Static Code Attributes to Learn Defect Predictors
- A framework and methodology for studying the causes of software errors in programming systems
- Learning a Metric for Code Readability
- Software Metrics
- A Review of Software Quality Models for the Evaluation of Software Products
- Modern code review
- When and Why Your Code Starts to Smell Bad (and Whether the Smells Go Away)
- The use and usefulness of the ISO/IEC 9126 quality standard