Beauty and the Beast: on the readability of object-oriented example programs
2016 (English)In: Software quality journal, ISSN 0963-9314, E-ISSN 1573-1367, Vol. 24, no 2, 231-246 p.Article in journal (Refereed) PublishedText
Some solutions to a programming problem are more elegant or more simple than others and thus more understandable for students. We review desirable properties of example programs from a cognitive and a measurement point of view. Certain cognitive aspects of example programs are captured by common software measures, but they are not sufficient to capture a key aspect of understandability: readability. We propose and discuss a simple readability measure for software, SRES, and apply it to object-oriented textbook examples. Our results show that readability measures correlate well with human perceptions of quality. Compared with other readability measures, SRES is less sensitive to commenting and whitespace. These results also have implications for software maintainability measures.
Place, publisher, year, edition, pages
2016. Vol. 24, no 2, 231-246 p.
Object-oriented programming, Quality, Measurement, Software readability, Programming education
IdentifiersURN: urn:nbn:se:umu:diva-120084DOI: 10.1007/s11219-015-9267-5ISI: 000373861100002OAI: oai:DiVA.org:umu-120084DiVA: diva2:936118