"Why Put in This Much Effort?": How AI Availability Shapes Students' Motivation in Introductory Programming

2026-06-29Computers and Society

Computers and Society
AI summary

The authors studied how engineering students feel about using AI tools to do programming assignments. They found that while AI can make assignments easier, students still value learning through effort and struggle, though they are tempted to take shortcuts. The students worried that relying on AI might reduce their long-term skills and enjoyment of learning. The authors suggest that instead of simply restricting AI use, courses could focus more on how students learn rather than just what they produce.

AI toolsprogramming assignmentsmotivationSituated Expectancy-Value Theoryintrinsic valueutility valuecostproductive strugglecourse designengineering education
Authors
Keith Tran, Colton Harper, Thomas Price
Abstract
When AI tools can easily complete programming assignments, students face a motivational question: why invest effort in completing them independently? While prior work has examined instructor policies and usage patterns, we focus on how students themselves experience and respond to AI availability, a perspective important for designing courses that sustain engagement with programming practice. We investigate two research questions: (1) How do engineering students describe how AI availability shapes their motivation to put effort into programming assignments? (2) How do students navigate the tension between their expressed value for learning through effort and the constant availability of AI as an alternative to effort? We conducted semi-structured interviews with 13 engineering majors in an introductory MATLAB course where students could use a course-specific AI chatbot. Using Situated Expectancy-Value Theory (SEVT) as an analytical framework, we examined how students described their expectancy, values, and costs in the context of AI availability. When AI could complete assignments quickly, students questioned whether their time on programming was well spent (cost), questioned the long-term usefulness of programming skill (utility value), reported less satisfaction when AI bypassed productive struggle (intrinsic value), and described confidence that depended on AI being available (expectancy). Nearly all students expressed a preference for learning through effort and a simultaneous temptation to take shortcuts with AI (sanctioned or otherwise). Our findings complicate the assumption that students need external constraints to protect their learning. Students who managed the tension found motivation in the learning process itself, suggesting that course design may need to shift from valuing what students produce to supporting how they learn.