Diagnosable Code Duplication in Introductory Programming
Code quality is an important aspect of programming education, with duplicate code being a common issue. To help students learn to avoid code duplication, it is useful to provide them with actionable, specific feedback, not just a generic code duplication warning. In this paper, we introduce the concept of diagnosable code duplication, provide an overview of its various types, and propose a framework for automatic detection. We apply the framework to an introductory programming dataset to demonstrate its ability to provide specific feedback and reveal non-trivial differences in detected cases compared to simpler detectors.
Authors
- Radek Pelánek (ORCID: https://orcid.org/0000-0001-8877-4729)
- Anna Řechtáčková (ORCID: https://orcid.org/0009-0006-9449-4524)
Institutions
- Masaryk University (CZ)
Publication Details
- Published
- 2025-02-12
- DOI
- https://doi.org/10.1145/3641554.3701975
- Citations
- 1
- Primary Topic
- Teaching and Learning Programming
- Type
- article
- Field-Weighted Citation Impact
- 1.69