How teachers would help students to improve their code

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

Abstract

Code quality has been receiving less attention than program correctness in both the practice of and research into programming education. Writing poor quality code might be a sign of carelessness, or not fully understanding programming concepts and language constructs. Teachers play an important role in addressing quality issues, and encouraging students to write better code as early as possible.

In this paper we explore to what extent teachers address code quality in their teaching, which code quality issues they observe and how they would help novices to improve their code. We presented student code of low quality to 30 experienced teachers and asked them which hints they would give and how the student should improve the code step by step. We compare these hints to the output of professional code quality tools.

Although most teachers gave similar hints on reducing the algorithmic complexity and removing clutter, they gave varying subsets of hints on other topics. We found a large variety in how they would solve issues in code. We noticed that professional code quality tools do not point out the algorithmic complexity topics that teachers mention. Finally, we give some general guidelines on how to approach code improvement.
Original languageEnglish
Title of host publicationProceedings of ITiCSE 2019: the 24th Annual Conference on Innovation and Technology in Computer Science Education
Place of PublicationNew York
PublisherAssociation for Computing Machinery
Pages119-125
Number of pages7
ISBN (Print)9781450368957
DOIs
Publication statusPublished - Jul 2019

Keywords

  • Programming education
  • code quality
  • refactoring

Fingerprint

Dive into the research topics of 'How teachers would help students to improve their code'. Together they form a unique fingerprint.

Cite this