Student Code Refactoring Misconceptions

Publication date

2023-06-30

Authors

Carneiro Oliveira, EduardoORCID 0009-0004-5795-5219ISNI 0000000518010087
Keuning, HiekeISNI 000000049290580X
Jeuring, J.T.ISNI 0000000110063265

Editors

Advisors

Supervisors

Document Type

Part of book
Open Access logo

License

taverne

Abstract

Teaching students to develop code of good quality is important. Refactoring -- rewriting a program into a semantically equivalent program of better quality -- is a common technique to improve code quality. It is therefore relevant for students to learn about refactoring, even for the smaller programs they write as beginners. However, students make mistakes when refactoring programs. Some of these mistakes appear often, and might be caused by misconceptions they have. In this paper, we investigate common student code refactoring misconceptions. We do this by analyzing log data containing program snapshots of students working on refactoring exercises in a tutoring system. We manually inspect all transitions from a correct program state to an incorrect state. We then use grounded theory to identify and categorize misconceptions students might have when refactoring programs. As a result, this work (1) defines the concept of refactoring misconception, and (2) provides an initial list of 25 such misconceptions, together with an accompanying website with full details.

Keywords

code quality, code refactoring, grounded theory, misconceptions, program snapshot analysis, programming education, student code refactoring misconceptions, Taverne

Citation

Oliveira, E, Keuning, H & Jeuring, J 2023, Student Code Refactoring Misconceptions. in ITiCSE 2023 - Proceedings of the 2023 Conference on Innovation and Technology in Computer Science Education : Proceedings of the 2023 Conference on Innovation and Technology in Computer Science Education V. 1. Annual Conference on Innovation and Technology in Computer Science Education, ITiCSE, vol. 1, Association for Computing Machinery, New York, NY, USA, pp. 19–25. https://doi.org/10.1145/3587102.3588840