SIGCSE Virtual 2024
Thu 5 - Sun 8 December 2024
Fri 6 Dec 2024 04:00 - 04:30 at Track 1 - Papers 21

‘Code quality’ and ‘code style’ are terms that are frequently used interchangeably to describe the ‘goodness’ of programming code. Our position is that they are not the same, and that treating them as the same causes confusion. Different sets of style guides contain conflicting advice, have rules that do not obviously relate to quality, and specify requirements that cannot be objectively confirmed. This risks students believing that meeting guides will ‘improve’ their code, when in fact it may not, and so they may not appreciate what good quality really means. In this position paper we argue that ‘quality’ describes an intrinsic property of the code whereas ‘style’ always has a dependence on context, for example, programming language or personal preference. While ‘good quality’ requires ‘good style’, the relationship between the two must be made explicit. In this paper we propose a model that describes this relationship, explains why some guides are inconsistent, addresses any subjectivity, and provides a formal basis on which to teach code quality.

Fri 6 Dec

Displayed time zone: (UTC) Coordinated Universal Time change

03:00 - 04:30
Papers 21Conference at Track 1
03:00
30m
Paper
Automated Coding Challenges Assembly Using Pre-trained Programming Language Models
Conference
Yumi Chin Yin Lim Zhejiang University, Kai Weng Zhejiang University
03:30
30m
Paper
Breaking Barriers: Overcoming Resistance to Curriculum Indigenisation
Conference
Nicole Herbert University of Tasmania
04:00
30m
Paper
Code Style != Code Quality
Conference
Diana Kirk The University of Auckland, Andrew Luxton-Reilly The University of Auckland, Ewan Tempero The University of Auckland