← Latest papers
💻 computer science

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

Through semi-structured interviews with engineering students in an introductory MATLAB course, this study applies Situated Expectancy-Value Theory to reveal that while AI availability creates a tension between the desire for effortful learning and the temptation of shortcuts, students who successfully navigate this conflict find motivation in the learning process itself, suggesting a need for course designs that prioritize supporting how students learn rather than merely evaluating what they produce.

Original authors: Keith Tran, Colton Harper, Thomas Price

Published 2026-06-30
📖 5 min read🧠 Deep dive

Original authors: Keith Tran, Colton Harper, Thomas Price

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are learning to bake a complex cake. You spend hours measuring ingredients, mixing batter, and watching the oven, only to realize that a friend has a "Magic Cake Machine" that can produce a perfect, identical cake in 30 seconds.

This is the situation facing engineering students in introductory programming classes today. The "Magic Machine" is Generative AI (like ChatGPT), which can write code almost instantly. This paper asks a simple but deep question: When students know this machine exists, does it change why they want to bake the cake themselves?

The researchers interviewed 13 engineering students (who are learning to code as a tool for their engineering jobs, not to become professional programmers) to find out. Here is what they discovered, broken down into simple concepts.

1. The "Cost" of Effort Just Went Up

The biggest change wasn't that students suddenly hated coding. It was that the cost of doing it themselves felt much higher.

  • The Analogy: Imagine you are hiking up a mountain. It's hard work, but you feel proud when you reach the top. Now, imagine a helicopter is hovering nearby that can drop you right at the summit in seconds.
  • The Finding: Even if the student wants to hike, seeing the helicopter makes the hike feel like a waste of time. They start thinking, "Why spend 3 hours struggling with a bug when AI can fix it in 3 seconds?" The effort feels less "worth it" because a faster, easier alternative is always visible.

2. The "Magic Machine" Steals the Satisfaction

For many students, the joy of coding comes from the struggle—the "aha!" moment when a broken piece finally clicks into place.

  • The Analogy: Think of solving a puzzle. The fun is in figuring out where the pieces go. If someone else just hands you the completed puzzle, you have the picture, but you lost the fun of solving it.
  • The Finding: Students who used AI to finish their work felt less accomplished. They described the result as "artificial." One student said, "I didn't do it myself, so it doesn't feel like my win." The more they relied on the AI, the less satisfying the "victory" felt.

3. The "Identity Crisis" (Who Am I?)

Some students had a strong internal compass. They saw themselves as "people who figure things out."

  • The Analogy: Imagine a runner who defines themselves by their endurance. Even if a car is available, they still run because running is who they are.
  • The Finding: Students who tied their identity to "struggling and learning" were better at resisting the AI. They set their own rules, like, "I can use AI to check my work, but I must write the code myself first." They reframed the effort: "The point isn't just the cake; it's the practice of baking."

4. The "Peer Pressure" Helicopter

It wasn't just about the students' own choices; it was about what they thought their classmates were doing.

  • The Analogy: If you are the only one walking up the mountain while everyone else is taking the helicopter, you start to feel foolish. You wonder, "Why am I wasting my time?"
  • The Finding: Students felt their hard work was "devalued" if they knew peers were using AI to get better grades with less effort. This created a temptation to jump on the helicopter just to keep up, even if they didn't want to.

5. The Two Types of Students

The researchers found two main groups of students navigating this new world:

  • The "Guarded Hikers" (7 students): These students valued the struggle. They used AI like a map or a compass (to check syntax or understand a concept) but refused to let it carry them up the mountain. They set strict boundaries to protect their own learning.
  • The "Helicopter Riders" (5 students): These students also said they valued learning, but when the work got hard or they were tired, they took the helicopter. They felt guilty about it later, saying, "I know I'm not learning as much, but it was just so tempting to get it done." They often felt less confident in their own skills because they relied so heavily on the machine.

The Big Takeaway

The paper concludes that the problem isn't that students are lazy or don't care about learning. Most of them actually do care.

The issue is that when a "Magic Machine" is available, it changes the math in their heads. It makes the hard work feel like a bad deal.

  • For the "Guarded Hikers": They found motivation in the process itself. They learned to ignore the helicopter and focus on the hike.
  • For the "Helicopter Riders": They got stuck in a loop. They used the machine to save time, which made them less skilled, which made them feel they needed the machine even more.

What does this mean for teachers?
The paper suggests that simply banning AI might not work because the temptation is internal. Instead, teachers might need to change how they design classes. Instead of just grading the final "cake" (the code), they should grade the "baking process" (how the student struggled and learned). They need to help students see that the struggle itself is the valuable part, not just the final result.

In short: AI doesn't just make coding easier; it makes the effort of coding feel harder to justify. Students who can find joy in the struggle are the ones who will keep learning, while others might get lost in the shortcut.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →