Teaching Well-Structured Code: A Literature Review of Instructional Approaches

Publication date

2025-06-12

Authors

Nurollahian, Sara
Keuning, HiekeISNI 000000049290580X
Wiese, Eliane

Editors

Advisors

Supervisors

Document Type

Part of book
Open Access logo

License

taverne

Abstract

Teaching the software engineers of the future to write high-quality code with good style and structure is important. This systematic literature review identifies existing instructional approaches, their objectives, and the strategies used for measuring their effectiveness. Building on an existing mapping study of code quality in education, we identified 53 papers on code structure instruction. We classified these studies into three categories: (1) studies focused on developing or evaluating automated tools and their usage (e.g., code analyzers, tutors, and refactoring tools), (2) studies discussing other instructional materials, such as learning resources (e.g., refactoring lessons and activities), rubrics, and catalogs of violations, and (3) studies discussing how to integrate code structure into the curriculum through a holistic approach to course design to support code quality. While most approaches use analyzers that point students to problems in their code, incorporating these tools into classrooms is not straightforward. Combined with further research on code structure instruction in the classroom, we call for more studies on effectiveness. Over 40% of instructional studies had no evaluation. Many studies show promise for their interventions by demonstrating improvement in student performance (e.g., reduced violations in student code when using the intervention compared with code that was written without access to the intervention). These interventions warrant further investigation on learning, to see how students apply their knowledge after the instructional supports are removed.

Keywords

Code Quality, Code Structure, Coding Style, Taverne, Software, Education

Citation

Nurollahian, S, Keuning, H & Wiese, E 2025, Teaching Well-Structured Code : A Literature Review of Instructional Approaches. in Proceedings - 2025 IEEE/ACM 37th International Conference on Software Engineering Education and Training, CSEE and T 2025. Software Engineering Education Conference, Proceedings, IEEE, pp. 205-216, 37th IEEE/ACM International Conference on Software Engineering Education and Training, CSEE and T 2025, Ottawa, Canada, 28/04/25. https://doi.org/10.1109/CSEET66350.2025.00027, conference