Skip to content
Blog

Why You Should Still Learn to Code in the Age of AI

With AI coding assistants on the rise, Stanford professor Chris Piech explains why learning to code remains essential for developing problem-solving skills and creative thinking.

Published on September 12, 2026

AI Assistant

Why You Should Still Learn to Code in the Age of AI

In an era dominated by large language models, AI coding assistants, and automated code generation, a haunting question looms over prospective students and engineers: If AI can write code, should humans still learn how to program?

According to Chris Piech, a Computer Science professor at Stanford University and co-creator of Code in Place, the answer is an emphatic yes.

While AI models like Claude or Cursor can draft code, debug syntax, and build rapid prototypes, relying on them completely risks creating a generation of developers who lack foundational problem-solving skills, architectural intuition, and creative direction.


The AI Learning Paradox: Clarity vs. Motivation

When Piech’s team tested different ways of integrating AI chatbots into CS education across tens of thousands of global learners, they made a counterintuitive discovery: simply giving students an AI chatbot often decreased course completion rates.

  • The Problem with AI Tutors: While AI models provide correct, hallucination-free answers to intro-level programming tasks, they fail to ignite curiosity or offer genuine human encouragement.
  • The Human Element: Introducing a human mentor or section leader—even for just 10 minutes—increases a student’s completion probability by 10 percentage points.

“The crown jewel of education has always been motivation,” Piech explains. “It’s a lot more motivating to say, ‘I care about you being a smart person… Let’s work on your foundations, and then when you’re done, I’ll teach you how to code with AI.’”


Problem-Solving vs. Syntax

To thrive alongside AI, engineers need to understand the distinction between Syntax and Problem-Solving.

DomainWhat It InvolvesAI’s ImpactHuman Priority
SyntaxLanguage rules, functions, memorizing commandsHighly AutomatedLower Priority
Problem SolvingBreaking down large systems, data architecture, algorithm designLimited / FragileCritical Focus

Coding provides immediate, falsifiable feedback—if your logic is wrong, the code fails instantly. This fast feedback loop makes programming one of the best tools for developing core logical thinking and decision-making capabilities.


The Danger of Over-Outsourcing

Over-reliance on AI models leads to cognitive atrophy. If students outsource essay writing, code architecture, or problem decomposition to an AI, they eventually lose the capacity to perform those tasks when subtle bugs or complex edge cases arise.

Piech draws a parallel to basic arithmetic: despite calculators existing for decades, children still learn multiplication because skipping foundational concepts renders higher-level mathematics incomprehensible.

           Foundational Knowledge


           Critical Architecting


         AI-Powered Productivity

Advice for Future Software Engineers

  1. Lowered Barriers to Entry: Small teams of junior engineers or even high school students can now build full-featured, high-impact products that previously required extensive dev teams.
  2. Focus on Product and Value: The competitive edge shifts toward understanding what is worth building, what users truly need, and how human problems interface with computing.
  3. Build to Learn: Use AI tools to accelerate prototyping, then ask the AI to explain the underlying choices to master the concepts.
  4. Maintain an Optimistic Mindset: Do not get paralyzed by trying to predict what jobs will look like years down the line. Focus daily on curiosity, personal growth, and gaining deep understanding.

“Go make stuff. Make stuff that people use. Make stuff that people love. And in that process of iteration, you have an opportunity to become excellent at coding and excellent at problem-solving.” — Chris Piech


Reference