How teachers would help students to improve their code

H.W. Keuning, B.J. Heeren, J.T. Jeuring

Research output: Chapter in Book/Report/Conference proceedingConference article in proceedingAcademicpeer-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 publicationITiCSE ’19
Subtitle of host publicationProceedings of the 2019 ACM Conference on Innovation and Technology in Computer Science Education
Place of PublicationNew York
PublisherAssociation for Computing Machinery (ACM)
Pages119-125
Number of pages7
ISBN (Electronic)9781450368957
DOIs
Publication statusPublished - 2019
Eventthe 24th Annual Conference on Innovation and Technology in Computer Science Education - University of Aberdeen, King’s College, Regent Walk, Aberdeen, United Kingdom
Duration: 15 Jul 201917 Jul 2019
https://iticse.acm.org/ITiCSE2019/

Conference

Conferencethe 24th Annual Conference on Innovation and Technology in Computer Science Education
Abbreviated titleITiCSE 2019
CountryUnited Kingdom
CityAberdeen
Period15/07/1917/07/19
Internet address

    Fingerprint

Cite this

Keuning, H. W., Heeren, B. J., & Jeuring, J. T. (2019). How teachers would help students to improve their code. In ITiCSE ’19: Proceedings of the 2019 ACM Conference on Innovation and Technology in Computer Science Education (pp. 119-125). Association for Computing Machinery (ACM). https://doi.org/10.1145/3304221.3319780