From Code Generation to Conceptual Learning: Student Use of LLMs in a Web Programming Course
Authors
Paper Title
From Code Generation to Conceptual Learning: Student Use of LLMs in a Web Programming Course
Publication Info
- Topic area: Use of Large Language Models (LLMs) in computer science education.
- Keywords: LLMs, web programming, computer science education, prompt engineering, debugging, conceptual learning, metacognition, AI-assisted learning, student performance, programming assignments.
Background and Problem
- Problem / challenge: Existing studies on LLM use in education often rely on self-reports or controlled experiments with limited scope, failing to capture organic, real-world usage in advanced programming courses.
- Significance: Understanding how students use LLMs in realistic settings is crucial for designing effective educational strategies and preparing students for industry practices.
- Motivation and related work: Prior research has explored LLMs in introductory courses or group-based projects but lacks insights into individual usage patterns in advanced courses. This study builds on work like Arora et al. by focusing on individual interactions and their correlation with academic performance.
Solution
- Proposed approach: Analysis of 448 LLM chat logs from 147 students in a senior-level web programming course over two semesters, using open coding to categorize interactions and correlate them with academic outcomes.
- Novelty:
- Identification of 14 distinct prompt–response pairs across three categories: code generation, debugging, and conceptual explanation.
- Correlation of specific LLM interaction patterns with academic performance.
- Observation of a temporal shift from code generation to explanation-oriented interactions.
- Mapping of student prompts to established prompt-engineering techniques.
- Procedure and key techniques:
- Collection of LLM chat logs, programming assignments, surveys, and grades from students.
- Open coding of chat logs to categorize interactions into implement, debug, and explain categories.
- Statistical analysis to correlate interaction patterns with academic performance and code borrowing rates.
- Comparison of interaction trends across two semesters.
Results
- Concrete findings:
- High-effort, detailed prompts for code generation correlated positively with final grades (r = 0.25, p < 0.01).
- Low-effort behaviors, such as pasting raw error messages, correlated negatively with performance (r = −0.34, p < 0.01).
- Explanation-oriented interactions increased over time, with all students using "explainhow" prompts by 2024.
- Advantage over baselines:
- Detailed prompting strategies led to better academic outcomes compared to low-effort or generic prompting.
- Explanation-oriented prompts provided richer learning opportunities compared to simple code generation.
- Experiments / evaluation:
- Data from 147 students across two semesters, with 448 chat logs analyzed.
- Correlations between prompt types and grades, as well as code borrowing rates, were assessed.
- Assignments included real-world programming tasks in the MERN stack.
- Limitations and future work:
- Voluntary participation may bias results toward higher-performing students.
- Chat logs do not capture students' underlying intentions or metacognitive processes.
- Future work could include longitudinal studies, adaptive GenAI systems, and comparisons with professional developers.
Summary
This study analyzed how students used LLMs in a senior-level web programming course, identifying 14 distinct interaction types and their correlations with academic performance. High-effort, detailed prompts were linked to better grades, while low-effort behaviors like pasting error messages were associated with poorer outcomes. Over time, students shifted from using LLMs primarily for code generation to leveraging them as conceptual tutors. These findings highlight the importance of effective prompting strategies and suggest that LLMs can support both learning and skill development when used thoughtfully. The results have implications for educators designing AI-integrated curricula and for the broader field of human-computer interaction.
Research Questions / Practical Problems
Question signals indexed for this paper.
- 83%
DBox: Scaffolding Algorithmic Programming Learning through Learner-LLM Co-Decomposition
CHI '25· Human-LLM Collaboration +2
- 83%
LingoQ: Bridging the Gap between EFL Learning and Work through AI-Generated Work-Related Quizzes
CHI '26· Human-LLM Collaboration +2
- 83%
Not Everyone Wins with LLMs: Behavioral Patterns and Pedagogical Implications for AI Literacy in Programmatic Data Science
CHI '26· Human-LLM Collaboration +2
- 71%
Generative AI-Enabled Conversational Interaction to Support Self-Directed Learning Experiences in Transversal Computational Thinking
CUI '24· Human-LLM Collaboration +2
- 67%
Playing Dumb to Get Smart: Creating and Evaluating an LLM-based Teachable Agent within University Computer Science Classes
CHI '25· Human-LLM Collaboration +1
- 67%
How Humans Communicate Programming Tasks in Natural Language and Implications For End-User Programming with LLMs
CHI '25· Human-LLM Collaboration +1
- 67%
Learning Behaviors Mediate the Effect of AI-powered Support for Metacognitive Calibration on Learning Outcomes
CHI '25· Human-LLM Collaboration +1
- 67%
Exploring the Design Space of Cognitive Engagement Techniques with AI-Generated Code for Enhanced Learning
IUI '25· Human-LLM Collaboration +1
Based on Jaccard similarity of research subtopics & professions (≥60%)