Skip to main navigation Skip to search Skip to main content

Detecting and addressing design smells in novice Processing programs

Ansgar Fehnker*, Remco de Man

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceeding › Conference proceeding contribution › peer-review

Abstract

Many novice programmers are able to write code that solves a given problem, but they struggled to write code that adheres to basic principles of good application design. Their programs will contain several design smells which indicate a lack of understanding of how to structure code. This applies in particular to degrees in which programming, and by extension software design, is only a small part of the curriculum.

This paper defines design smells for Processing, a language for new media and visual arts that is based on Java. This includes language specific smells that arise from the common structure that all Processing programs share. The paper also describes how to detect those smells automatically with static analysis. This tool is meant to support teaching staff with providing feedback to novices on program design.

We applied the tool to a large set of student programs, as well as programs from the Processing community, and code examples used by textbooks and instructors. The latter gave a good sense of the quality of resources that students use for reference. We found that a surprising number of resources contains at least some design smell. The paper then describes how to refactor the code to avoid these smells. These guidelines are meant to be practical and fitting the concepts and constructs that are known to first-year students.
Original languageEnglish
Title of host publicationComputer Supported Education
Subtitle of host publication10th International Conference, CSEDU 2018 Funchal, Madeira, Portugal, March 15–17, 2018 Revised Selected Papers
EditorsBruce M. McLaren, Rob Reilly, Susan Zvacek, James Uhomoibhi
Place of PublicationCham, Switzerland
PublisherSpringer, Springer Nature
Pages507-531
Number of pages25
ISBN (Electronic)9783030211516
ISBN (Print)9783030211509
DOIs
Publication statusPublished - 2019
Externally publishedYes
Event10th International Conference on Computer Supported Education (CSEDU 2018) - Funchal, Madeira, Portugal
Duration: 15 Mar 2018 → 17 Mar 2018

Publication series

NameCommunications in Computer and Information Science
PublisherSpringer
Volume1022
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

Conference10th International Conference on Computer Supported Education (CSEDU 2018)
Country/TerritoryPortugal
CityMadeira
Period15/03/18 → 17/03/18

Fingerprint

Dive into the research topics of 'Detecting and addressing design smells in novice Processing programs'. Together they form a unique fingerprint.

Cite this