Code Visualization System for Writing Better Code Through Trial and Error in Programming Learning: Classroom Implementation and Practice
DOI:
https://doi.org/10.58459/icce.2024.5006Abstract
In programming education, refining code is crucial. Trial and error is one effective method for achieving this refinement. However, it can be challenging for learners to maintain motivation during conventional programming exercises due to them not knowing how good their code is and not being able to continuously perform trial and error. To address these issues, it is important to establish criteria for evaluating code quality and have learners objectively recognize them. Therefore, we propose and implement a method that uses a code visualization system that visualizes quality indicators, a ranking system, and a code viewing function based on that ranking. Evaluation of this system when implemented in a university classroom suggests that students write better code, based on these quality indicators, when they perform trial and error by themselves or by viewing other learners' code.