Content area
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.
Details
; Bennin, Kwabena E. 2 ; Hooshangi, Sara 3 ; Jeuring, Johan 4 ; Keuning, Hieke 4 ; Kleiner, Carsten 5 ; MacKellar, Bonnie 6 ; Duran, Rodrigo 7 ; Störrle, Harald 8 ; Toll, Daniel 9 ; van Assema, Jelle 10 1 Blekinge Institute of Technology, Karlskrona, Sweden (GRID:grid.418400.9) (ISNI:0000 0001 2284 8991)
2 Wageningen University and Research, Wageningen, The Netherlands (GRID:grid.4818.5) (ISNI:0000 0001 0791 5666)
3 Virginia Tech, Falls Church, USA (GRID:grid.438526.e) (ISNI:0000 0001 0694 4940)
4 Utrecht University, Utrecht, The Netherlands (GRID:grid.5477.1) (ISNI:0000 0000 9637 0671)
5 University of Applied Sciences & Arts Hannover, Hannover, Germany (GRID:grid.461671.3) (ISNI:0000 0004 0589 1084)
6 St John’s University, Queens, USA (GRID:grid.264091.8) (ISNI:0000 0001 1954 7928)
7 Aalto University, Helsinki, Finland (GRID:grid.5373.2) (ISNI:0000 0001 0838 9418)
8 QAware GmbH, Munich, Germany (GRID:grid.5373.2)
9 Linnæus University, Kalmar, Sweden (GRID:grid.8148.5) (ISNI:0000 0001 2174 3522)
10 University of Amsterdam, Amsterdam, The Netherlands (GRID:grid.7177.6) (ISNI:0000 0000 8499 2262)