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.
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 language | English |
|---|---|
| Title of host publication | Computer Supported Education |
| Subtitle of host publication | 10th International Conference, CSEDU 2018 Funchal, Madeira, Portugal, March 15–17, 2018 Revised Selected Papers |
| Editors | Bruce M. McLaren, Rob Reilly, Susan Zvacek, James Uhomoibhi |
| Place of Publication | Cham, Switzerland |
| Publisher | Springer, Springer Nature |
| Pages | 507-531 |
| Number of pages | 25 |
| ISBN (Electronic) | 9783030211516 |
| ISBN (Print) | 9783030211509 |
| DOIs | |
| Publication status | Published - 2019 |
| Externally published | Yes |
| Event | 10th International Conference on Computer Supported Education (CSEDU 2018) - Funchal, Madeira, Portugal Duration: 15 Mar 2018 → 17 Mar 2018 |
Publication series
| Name | Communications in Computer and Information Science |
|---|---|
| Publisher | Springer |
| Volume | 1022 |
| ISSN (Print) | 1865-0929 |
| ISSN (Electronic) | 1865-0937 |
Conference
| Conference | 10th International Conference on Computer Supported Education (CSEDU 2018) |
|---|---|
| Country/Territory | Portugal |
| City | Madeira |
| Period | 15/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
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver