AI tutors for learning to code: what the studies show
Giving a programming student an AI assistant looks like a sure win: they solve exercises faster and with less frustration. But recent research raises an uncomfortable question: do they perform more, or learn more? They are not always the same.
Performance is not learning
In a study at the Technical University of Munich with 275 students, the groups that used AI scored higher on the exercises than the control group. Yet that advantage did not translate into a better conceptual understanding of the code. Students delivered better work, but did not necessarily understand it better.
Tutor design matters
A 2026 paper compared two ways of supporting the use of language models: tutors that hold a dialogue with questions (Socratic style) versus tutors that help refine the request. During guided use, performance was similar; the differences appeared in transferable learning and in how students later used AI on their own. The pattern that keeps appearing in the literature is simple: a tutor that gives hints, asks questions and withholds the full solution protects the cognitive effort that produces learning.
What it means for teachers
- Hints before answers. Let the student try, and let the AI ask why.
- Assess understanding, not just the result. An oral explanation or modifying the code unaided says more than a submitted exercise.
- Visibility for the teacher. If you can’t see how they use AI, you can’t correct the habit.
- Honesty about mistakes. Tutors get things wrong, and novice students are the least able to notice.
How we apply it in Mentora
Mentora is our platform for universities, bootcamps and teachers: the teacher manages classes and content, and each student practices coding with AI support. The design choices above are not theory: they guide how the tutor responds. If you teach programming and want to try it with your students, write to us.