Skip to main navigation Skip to search Skip to main content

Introducing Code Quality at CS1 Level: Examples and Activities

  • Cruz Izu
  • , Claudio Mirolo
  • , Jürgen Börstler
  • , Harold Connamacher
  • , Ryan Crosby
  • , Richard Glassey
  • , Georgiana Haldeman
  • , Olli Kiljunen
  • , Amruth Kumar
  • , David Liu
  • , Andrew Luxton-Reilly
  • , Stephanos Matsumoto
  • , Eduardo Carneiro Oliveira
  • , Seán Russell
  • , Anshul Shah
  • University of Adelaide
  • University of Udine
  • Blekinge Institute of Technology
  • Case Western Reserve University
  • Durham University
  • KTH Royal Institute of Technology
  • Colgate University
  • Aalto University
  • Ramapo College of New Jersey
  • University of Toronto
  • The University of Auckland
  • Franklin W. Olin College of Engineering
  • University College Dublin
  • University of California at San Diego

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

Abstract

Characterising code quality is a challenge that was addressed by a previous ITiCSE Working Group (Börstler et al., 2017). As emerged from that study, educators, developers, and students have different perceptions of the aspects involved. The perception of code quality by CS1 students develops from the feedback they receive when submitting practical work. As a consequence of increasingly large classes and the widespread use of autograders, student code is predominantly assessed based on functional correctness, emphasising a machine-oriented perspective with scarce or no feedback given about human-oriented aspects of code quality. Such limited perception of code quality may negatively impact how students understand, create, and interact with code artefacts. Although Börstler et al. concluded that "code quality should be discussed more thoroughly in educational programs", the lack of materials and time constraints have slowed down progress in that regard.
The goal of this Working Group is to support CS1 instructors who want to introduce a broader perspective on code quality in their classroom, by providing a curated list of examples and activities suitable for novices. In order to achieve this goal, we have extracted from the CS education literature a range of examples and activities, which have then been analysed and organised in terms of code quality dimensions. We have also mapped the topics covered in those materials to existing taxonomies relevant to code quality in CS1. Based on this work, we provide: (1) a catalogue of examples that illustrates the range of quality defects that could be addressed at CS1 level; and (2) a sample set of activities devised to introduce code quality to CS1 students. These materials have the potential to help educators address the subject in more depth.
Original languageEnglish
Title of host publicationITiCSE WGR 2024
Subtitle of host publicationPublication of the 2024 Working Group Reports on Innovation and Technology in Computer Science Education
PublisherAssociation for Computing Machinery
Pages339-377
Number of pages39
ISBN (Electronic)9798400712081
ISBN (Print)979-8-4007-1208-1
DOIs
Publication statusPublished - 23 Jan 2025

Publication series

NameAnnual Conference on Innovation and Technology in Computer Science Education, ITiCSE
ISSN (Print)1942-647X

Bibliographical note

Publisher Copyright:
© 2025 Owner/Author.

Keywords

  • CS1
  • activities
  • code quality
  • examples
  • readability
  • refactoring
  • style

Fingerprint

Dive into the research topics of 'Introducing Code Quality at CS1 Level: Examples and Activities'. Together they form a unique fingerprint.

Cite this