# Stanford CS Professor: AI Can Code. That’s Why You Should Learn | Chris Piech <!-- ref: @content/youtube/eo-global/stanford-cs-professor-ai-can-code-that-s-why-you-should-learn-chris-piech tags: [learning to code, AI and education, motivation, problem solving, foundations, Code in Place] version: 2 updated_at: 2026-11-24T07:02:16.766Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=g-CD1d0q01I)** # Stanford CS Professor: AI Can Code. That’s Why You Should Learn | Chris Piech *Synthesized from Chris Piech on EO, 2026-07-31.* Chris Piech, a Stanford computer science professor who teaches large intro classes and Code in Place, speaks solo on why students should still learn to program and reason with AI around. ## Core Thesis Chris argues that AI makes learning foundations more valuable rather than less, because it magnifies the abilities of people who have them. He says the real risk is losing motivation and the ability to reason, and that learners should build problem-solving skills and foundations before relying on AI. ## Key Insights - **Code in Place scale.** The free online course ran for six years, with about 17,000 students and more than 1,000 teachers, and its enrollment roughly doubled. - **Chatbots alone demotivate.** In Code in Place experiments, handing learners a chatbot predictably led to dropouts. A pop-up offering 10 minutes with a human teacher raised completion probability by 10 percentage points. He says the AI answers were generally correct, and the difference is motivation and inspiration. - **Curiosity.** He says current chatbots do not ignite curiosity the way a teacher who knows the student can, by showing a surprising example at the right moment. - **Syntax versus problem solving.** AI will handle syntax, so the lasting skill is decomposing problems and designing how data flows to algorithms. Coding gives fast, falsifiable feedback that makes this practice quicker than decisions in life. - **Time on task.** To become a strong engineer, track time spent actually creating rather than delegating to Claude Code. He suggests building prototypes with Claude Code and asking it to explain the concepts used. - **Architecture.** When AI writes too much of the code, the author can lose the architectural understanding needed to debug weeks later. - **Forecasting jobs.** He says five- to ten-year job predictions are usually wrong, citing self-driving cars and truck drivers as an example. - **Calculators analogy.** Students still learn multiplication even with calculators, and the concept matters more than rote speed. ## Actionable Takeaways 1. Keep learning foundations in probability, writing and programming, and use AI on top of them rather than instead of them. 2. Practice problem decomposition while coding, since syntax is what AI will handle. 3. Track the time spent creating things yourself, and use Claude Code to explain the concepts behind prototypes you build. 4. Young engineers can start on the skill of judging which problems are worth solving now, since small teams can build real products. ## Notable Quotes > "The deepest understanding doesn't come in the moment." — Chris Piech > "Crown jewel of education has always been motivation" — Chris Piech > "It's probably more important that you know how to problem solve." — Chris Piech --- *Related: `@content/youtube/starter-story/i-made-40-in-3-months-now-what` · `@content/youtube/a16z/the-ai-school-kids-love-more-than-vacation-alpha-school-s-joe-liemandt` · `@content/youtube/daniel-priestley/2026-07-04-what-i-learned-from-being-around-the-top-0-01`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*