AI时代下的编程教育转型:为什么我们依然需要学习?
作为斯坦福大学的计算机科学教授,Chris Piech主导了著名的在线编程项目“Code in Place”。在AI(如Claude和Cursor)爆发前后,该项目的注册人数翻了一倍,显现出大众对学习编程的巨大热情。然而,面对AI能够自动编写代码、进行概率计算甚至撰写文章的现状,人们不可避免地产生了一个根本性疑问:在AI时代,我们是否还需要学习这些技能?
Chris Piech给出的答案是坚定的否定:我们绝不能放弃培养下一代的智慧。形式化论证能力、概率推理的深度以及编程的底层逻辑,是人类思维的核心基石。当AI具备这些能力时,它并非要取代人类,而是会成倍地放大人类的能力(Magnify human abilities)。未来的关键在于如何在这些领域内保持人类的深度与智慧。
在建立这种心理防线后,应对未来的不确定性与动力的具体探讨如下。
Original English
Hi, you know, I'm Chris Peach. I'm a professor here at Stanford University. I teach some large intro to computer science classes, some intro to math for AI. Code in Place, if people don't know it, it's an online class where you can learn to program. And the special thing about Code in Place is that it's the class in the world with the most teachers, and there's about 17,000 students and more than 1,000 teachers. We've been doing Code in Place for 6 years, so we did Code in Place before Cursor and Claude and Code in Place after. A few observations. One, our enrollment basically doubled. Oh my gosh, all these people want to learn how to code. You can expand the question. You can say, "Should I learn to program?" You can also say, "Should I learn probability?" Like AI can code, but AI can also do probability. Should I learn to write? AI can write. I think the wrong answer would be, "No, no, no." We're not giving up on the next generation being smart. Yes, you should learn how to formalize an argument. Yes, you should learn the depth of probabilistic reasoning. And yes, you should learn how to program. If AI is able to do those things, your abilities may be magnified. But I imagine in the future, it will still be important to be smart in those spaces.
AI时代的学生动力危机:应对未来的不确定性
在当前的教学实践中,Chris Piech观察到学生们正经历着比以往更严重的动力危机(Motivational crisis)。这种危机源于对未来极大的不确定性。学生们不仅在思考如何利用当下的AI工具,更面临着一个严峻的长期挑战:如果现在开始一个四年的大学学业,如何预判四年后AI又进化了数个代际时,2030年的就业市场会是什么样子?
这种巨大的不确定性导致了学习动力受挫。当学生们将思考和撰写逻辑外包给AI时,他们往往会陷入一个困惑:在哪个临界点上,我们因为过度依赖AI而放弃了自己的成长?如果让AI代写了太多的文章或代码,我们是否会丧失最核心、最具有创造性的架构设计与批判性思维能力?因此,玩转AI的同时,学习者必须保持高度的自我觉察(Self-awareness),时刻关注自身的个人成长。
在这种动力的博弈中,“人性的温度”和“启发式教育”扮演了至关重要的角色。
Original English
I'm seeing more people with a motivational crisis than I have in the past, and that makes sense. There's more uncertainty in the world. You know, you can think about, "What can I contribute with AI of 2026?" But I think students are faced with the much harder problem of thinking about, "Well, if I'm starting a 4-year program, I have to think about what jobs are going to exist in 2030 when AI is 4 years more advanced?" And that's a lot of uncertainty for students, and I empathize with this quite a lot. I think naturally that leads to some motivational problems. When am I actually getting something out of AI and when have I given away too much of the growth? I suppose, if I start outsourcing, at what point will I no longer be able to do that? Like that really critical piece. I think all students have felt like this. Like if you have AI write too many of your essays, at what point are you no longer able to write an essay? If you have AI write too much of your code, at what point can you no longer do that valuable piece of the architecture? So, I suppose that's the part where like I think it's fun to use AI. I think people should be playing around with it, but you should be self-aware. And you should be self-aware of like are you also growing alongside the AI? And you should care so much about your own personal growth.
“人性的温度”与“启发教育”:AI导师无法替代的黄金法则
在“Code in Place”项目中,教学团队通过设计不同的“AI剂量”实验,获得了一个出人意料的发现:如果仅仅给学生提供一个AI聊天机器人,许多学生会在遇到困难时选择放弃或感到沮丧。相反,当系统提示学生可以与一位在线的人类助教(Section Leader)进行10分钟的交流时,学生完成课程的概率会提升整整10个百分点。
这表明,即便AI给出的解答完全正确且没有幻觉,人类的温度(Human touch)依然是教育中不可或缺的驱动力。教育的冠冕明珠在于激发动力(Motivation)与点燃好奇心(Ignite curiosity)。人类教师能根据学生的具体背景,精心挑选能让他们“头脑风暴”的启发性案例,从而拨动兴趣的开关(Flip the switch),让学生自发地、不知疲倦地去思考和探索。而目前的AI聊天机器人更多是在单向地回答问题,在主动激发人类学习者的好奇心方面仍显不足。
除了教育领域,这种人机协作的思路也正在重塑日常的工作流。
Original English
We've been doing this six times, we've tried a lot of different experiments where we gave people different dosage of AI and we have learned something very surprising. If we give people AI and just like here's a chatbot, use it to learn, predictably people will drop out. People get demotivated. It is demotivating to have AI thrown at you at the wrong moment of your learning. We have found very nuanced ways where we can use AI that actually helps people learn. But if you contrast that with humans. So, if I throw AI at you, you're probably going to become a little bit demotivated statistically. But what happens if I throw a human at you? Imagine you're just programming in code in place, you might get a pop-up and it says, "Hey, there's a teacher online and they would like to spend 10 minutes with you. Do you want to talk to them?" If you hit yes, your probability of completing the course goes up 10 percentage points. So, you must be thinking, "Oh, the humans must be saying the right things and the AI must be saying the wrong things." We've looked at these conversations, the AI was correct. It wasn't hallucinating not for intro programming and the humans weren't always correct. But the human touch is special. It's motivating and I think we all need motivation right now. Everyone needs something to convince them I'm not going to make Claude do all the thinking for me. Like to actually do the thinking yourself takes extra energy. Crown jewel of education has always been motivation and it's a lot more motivating for me to say I care about you being a smart person. I'm not giving up on you being a smart person this time of AI. Um let's work on your foundations and then when you're done with your foundations, I'll teach you how to code with AI. That works so much better. When I look at chatbots, I think they do a good job of answering my question. But one challenge I would pose to anybody thinking about how to make these work better for education is how do you get it to inspire? Sometimes I will inspire my students in a deep way. And it could be like you come into my office and be like, "Hey, do you want to see something really cool about probability?" And I just show them something really neat and they weren't even thinking about that. That wasn't the question they came in with. But then they they feel that like love and like that that inspiration. And as I said, if I can flip the switch of getting the student so curious that they can't help but learn. Like the rest of the day all they can think about is the problem that I just posed to them or that cool thing I showed them. If that curiosity gets ignited, then I feel like they'll get there. And when I look at current chatbots, they're not igniting curiosity that much. It's not like you show up to ChatGPT and be like, "Hey, do you want to just see something that is going to make your mind explode that will like, you know, pull you in?" Now, as a teacher, I can do that because I have some context on my students. I know largely where they are and largely where they're trying to go. So I can be very delicate in the choice of the inspiring example or the inspiring challenge to pose to my students. If you just think an AI tutor will solve the clarity problem, you might miss at the bigger piece of the puzzle. And I feel like if we leverage this, we can have a nicer world.
工具赋能与深度准备:利用AI重构工作流
在分享教育理念的间隙,视频展示了一个具体的AI应用实例:如何利用会议记录工具 Granola 优化采访准备工作流。最深度的理解往往不是在采访发生的瞬间产生的,而是提前构建的。在正式录制前进行预采访时,Granola 会在后台静默记录并转写内容,无需任何机器人显式加入会议,随后将其转化为整洁的笔记。
通过使用自定义的“采访准备”(Interview Prep)提示词模板,采访者可以一键分析预采访的录音,在几秒钟内提炼出真正值得讲述的故事线索、值得深入追问的细节以及有价值的问题。这种利用 AI 进行信息分层与预备的方式,让采访者无需在脑海中反复翻阅冗长的转写文本,便能对谈话方向了然于胸,从而将更多精力集中在与受访者的现场互动中。这展示了AI作为效率放大器(Productivity multiplier)的实际价值。
从这一微观工作流的重构出发,我们可以进一步思考人类在预测技术变革时普遍存在的认知偏差。
Original English
The deepest understanding doesn't come in the moment. It's built beforehand. Same goes for us. Before the main interview, we always do a pre-interview call. And Granola quietly transcribes it in the background. No bot ever joining, turning it into clean notes. So, we built our own recipe for this. It's called Interview Prep. We wrote the prompt once with everything we want before a shoot, and now it's one click every time. Then, minutes before the cameras roll, we run it right on that pre-interview call. In seconds, it surfaces the story worth telling, the threads worth pulling, and the questions worth asking. It's like having the whole transcript in your head without ever opening it. So, we sit down already knowing where it should go. It's not a generic checklist. Every line is drawn from the real discussion we just had, shaped by exactly how we like to prep. Less time scrambling to remember, more time fully present in the room. Turns out, the more you prepare, the more you understand. Try Recipes today. New users get 100% off their first month at the link in the description.
预测未来的认知偏差:高估速度与低估长尾效应
预测未来5到10年的就业市场往往是极其困难的,历史证明人们几乎总是预测错误。Chris Piech分享了一个关于自动驾驶发展的生动案例:在2011至2012年他读博期间,他的同事们实现了自动驾驶汽车的首批重要里程碑。当时,社会舆论普遍惊呼“卡车司机和出租车司机要失业了”。但事实是,至今卡车司机这一职业依然在稳步增长。
这揭示了人类在面对AI技术时的认知偏差:我们往往严重高估了技术普及的速度,同时低估了实际落地中的复杂性。比如,对于贵重货物运输而言,人类司机的责任心是不可替代的;此外,交通路况存在着巨大的长尾效应(Long-tail experiences)——即便99%的路况是常规的,但剩下1%的突发和极端路况对AI来说却极难完全掌握。这种长尾问题同样存在于编程领域,如果学习者完全将思考外包给AI,在面对复杂架构和微妙的底层漏洞(weird bugs)时,将彻底丧失解决问题的能力。
正是由于这些复杂底层逻辑的存在,我们需要重新审视AI时代下核心编程能力的拆解。
Original English
In 5 to 10 years, many things will change. The future has always been unpredictable. It's always been the case that if you ask people to project what jobs will be the right jobs 5 to 10 years, people always get it wrong. Here's an interesting anecdote, though. So, when I was young, I'm old man now, but when I was young and I was in my PhD, it was around the time that one of my now colleagues was making some of the first major milestones in self-driving cars. And this is back in like 2011, 2012. And at that moment, you would see this car drive and you'd think, "Oh my god, what does it mean to be a taxi driver or what does it mean to be a truck driver?" But, in fact, what happened is the truck driver profession has been growing at a very healthy rate. Um now, I don't know what the future holds for truck drivers. Maybe one day we'll come to an inflection point. But, there is a lot of reasons that people underestimated. They underestimated it like, "Well, if you have valuable cargo, you need a person who's responsible." Or the long tail sort of experiences. There's always something different happening on highway. 99% of experiences can be the same, but like that 1% of things that are different, it's so hard to have a AI master all of them. I think one day eventually we'll have fully self-driving cars and we'll live in a world where all our cars are driven by an AI system. But, what I was surprised about was how grossly we overestimate how quickly we'd get there. I think everyone who's worked deeply with AI has had this experience of by outsourcing a lot of thinking to AI, I am getting more separated from problem-solving myself. A good example right now is I program with AI a lot, but I happen to know a lot about programming and architecture. And if I don't know a lot about programming and architecture, AI will start to make some poor decisions, which I might not experience the first time I make a prototype, but like five weeks down the line when students are actually using my thing, they might start to hit weird bugs. And if I don't understand the architecture, I can't help them. I suppose if I start outsourcing, at what point will I no longer be able to do that? Like that really critical piece.
重塑核心竞争力:语法外包与问题解决能力的进化
Chris Piech将编程学习拆分为两个核心维度:语法(Syntax)与问题解决(Problem-solving)。语法决定了如何向计算机下达指令,而问题解决则是将宏大、复杂的任务拆解为细小的可执行模块,建立数据与算法的关联通道。他预测,AI将在语法层面变得无可匹敌,未来学习者无需死记硬背每一条编程命令。
然而,问题解决能力将变得比以往任何时候都更加重要。编程学习的独特之处在于它能提供即时的、可证伪的反馈(Immediate falsifiable feedback)——如果逻辑错误,程序就无法运行。这种极短的反馈回路让编程成为训练通用问题解决和决策能力的最佳试验场。在AI时代,优秀的软件工程师应该将精力投入到这种高阶思维的训练中,并学会通过快速构建原型来验证想法。与此同时,初级工程师需要尽早培养人机界面技能(Interface skill),即理解人类真实的痛点,并将其转化为计算机和算法能够解决的问题。
这种核心竞争力的跃迁,促使我们必须回归到教育的第一性原理中去。
Original English
When you're learning how to program, largely you can separate it into two pieces. One piece is you're learning the syntax of how do we tell computers to do things, and the other thing you're learning is basically problem-solving. Like, how do you take big problems and break them down into small pieces? How do you set it up so that data can speak to algorithms? How do you think about algorithms? So, I'm going to say AI is going to get really, really good at just the syntax. It's less important in the future that you've memorized every command. It's probably more important that you know how to problem-solve. So, while you're learning to program, really focus on that problem-solving ability. There's one thing about coding that's special. You get immediate falsifiable feedback. Like, if your logic is wrong, your thing doesn't work, and you get to see that, and you get to iterate quickly. Whereas if you apply problem-solving to life, you could make a poor decision, but the feedback cycle is so slow that you don't get to practice getting better and better at making decisions. So, there's a couple things about coding that makes it particularly good at teaching how to problem-solve. The question, how do you become like a really high contributor engineer? You might not find my answer that surprising, but it's like it's time on task. It's like, how much time are you spending actually creating things? And I'm going to separate you creating versus you giving it to Claude code. Now, by the way, you know what I would do if I was a young person? I would make a lot of prototypes with Claude code, and I'd say, "Claude code, teach me all the most important things that you you in order to create this." And I would iterate that way, and I'd get lots of experience, so I can try and figure out what are the most important concepts. I'll give your young engineers a particular challenge. As I said, it's a confusing time, but there's an opportunity that didn't exist before. One of the things that's happened is barriers to entries have been cut. You could be a 12th grader, so an 18-year-old with a friend, you might be able to make a high-quality startup. The two of you could make a pretty impressive code base that solves an interesting problem. There is a real art form to knowing what is a valuable problem to solve. And I think more and more juniors engineers get to engage with that art form. Like what is worth actually making? What do users want? What's the feature that will help them make progress in whatever their problems are? So that ability to interface between what are computers able to do and what do humans actually need has always been a critical high-order skill, and I think if I were a junior engineer, I would start working on that skill now. I wouldn't wait till I was a senior engineer.
坚守教育第一性原理:以好奇心与公理化信念开启新一代智慧
Chris Piech对未来的核心信念建立在一个“公理”之上:下一代一定会成为比我们更聪明的人。这就好比尽管计算器在多年前就已经普及,但孩子们依然需要学习乘法一样——我们可以优化教学的侧重点,但绝对不能跳过底层概念与基础逻辑(Foundations)。
在AI带来的多重杂音中,许多过度思考未来的人反而容易迷失方向并丧失动力。Chris分享了一位优秀学生的智慧:“我从不去多想AI的未来,这让我得以专注地探索和成长。”这种纯粹的好奇心(Curiosity)正是穿越技术迷雾的指南针。AI是一个能够成倍放大人类智慧的效率工具。当医生、教师或工程师带着对人类社会的关切,去使用这个工具时,他们就能走得更远。
Chris Piech最后寄语年轻一代:保持自我觉察,将“每天都要比昨天更聪明”作为你人生的底层公理(Axiom),勇敢地去创造人们热爱并切实需要的作品,在持续不断的实践与迭代中走向卓越。
Original English
If you start with the premise that my children will become smart people, and your children will become smart people. If you don't have children, then maybe your nephews and nieces will become smart people. You start from the premise that the next generation will be filled with people who are smarter than we are. Then you're like, "Okay, how do we get them to that point?" And then you look at any subject, probability, computer science. And when you look at any subject, there's often foundational concepts, and then you'll have layers of complexity built on top of it. If you expect them to become smarter than you are, it's really hard to skip the foundations. And one way of thinking about that is we've had calculators do multiplication for a long time. Kids still need to learn multiplication. Now, there's a subtle difference. The concept of multiplication is so critical, but actually knowing how to do the rote, you know, if I ask you like, "What's 13 * 7? Go quick." That's not as important as just knowing what is multiplication. We can't skip the foundations, but you can maybe be more artful about what you focus on. I kind of take it as an axiom that I'm not giving up on the next generation. Honestly, the people I've seen get most lost and most demotivated in this mode of AI are sometimes the ones who are overthinking it. I had a student, he was just doing such wonderful things. He was using AI, he was solving problems, he was learning amazing things. I asked, "Hey, wonderful student, like what are you thinking about?" And he says, "I actually don't think about it. I don't really think about the future of AI, and that allows me to thrive." And that gave me pause. I think about AI all the time. I feel like I think about AI 10 times a day. And then the simplicity of like, "No, I'm just going to be curious and learn." Since that day, I start my day with the axiom. I don't ask why I care about the next generation be smarter, I take it as a truth. I want this, and I will work towards it. It's a tool, and it will multiply humans. So, when humans are at our best, we can use this tool to multiply us. Like the doctor who really cares about their patient now has a tool that they can do more, faster, more accurately. The teacher who really cares about their students, who is passionate about them learning, they can go further with their students, and they can do more. Also, I get to see young people all the time. And I would say that gives me inspiration. Seeing their self-awareness, how critical their thinking, seeing them blossoming, it gives you optimism. If I was a young person right now, the most valuable thing is that you have the self-awareness. You should also have the goal that I will become smarter. Chris is not giving up on you, you should not give up on yourself, either. I have two kids under five. And you know what? They're going to live in an awesome world. Like we're going to adapt, we're going to figure things out. They're going to still have curiosities, they're going to still grow their minds, and we're going to keep every day working towards that. The top engineer might not be the person who knows all the code. Maybe the top engineer is a person who can relate the real world human problems into the world of apps, into the world of data science, and into the world of research. So, 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. Just take Axioms. You will become smarter than you were yesterday. Start your day like that.
📌 文中提及的人物和组织
公司/组织: Stanford University