Will AI replace Web Developers?
人工智能会取代网络开发人员吗?
A few days ago I received 2 emails asking me if learning Web Development is worth it, since AI now can do our job, in many cases better than us.
几天前,我收到两封电子邮件,询问我学习 Web 开发是否值得,因为人工智能现在可以完成我们的工作,在很多情况下比我们做得更好。
Wherever you look, your feed is probably filled with AI tools spitting out entire websites in seconds.
无论你往哪里看,你的提要都可能充满了人工智能工具,可以在几秒钟内吐出整个网站。
And I get it - I was there too, thinking ‘Is this it? Did I just waste the two decades I spent learning Web Development the hard way only for AI to make it all pointless?’
我明白了——我也在那里,心想‘是这个吗?我是否只是浪费了二十年的时间来艰难地学习 Web 开发,结果却让人工智能让这一切变得毫无意义?
As the vast majority of developers, I’ve spent the past year using AI a lot. It makes me so much more productive. But will it replace me? And most importantly, will it replace you, fledging developer still learning the basics?
作为绝大多数开发者,我在过去的一年里大量使用了人工智能。它让我更有效率。但它会取代我吗?最重要的是,它会取代仍在学习基础知识的新手开发人员吗?
Did AI just take all the junior dev jobs?
人工智能抢走了所有初级开发人员的工作吗?
Plot twist, this isn’t another ‘AI will take all our jobs’ doom video. It’s also not a “AI is a fad”.
情节扭曲,这不是另一个“人工智能将夺走我们所有工作”的末日视频。这也不是“人工智能是一种时尚”。
In the next few minutes, I’m going to show you what AI can and can’t do in web development right now, and more importantly - how you can use it to become a better developer, not a replaced one.
在接下来的几分钟内,我将向您展示人工智能目前在 Web 开发中可以做什么和不能做什么,更重要的是 - 如何使用它来成为一名更好的开发人员,而不是被取代。
Let me write a full script that builds on your outline while maintaining the engaging intro style:
让我根据您的大纲编写一个完整的脚本,同时保持引人入胜的介绍风格:
If you’ve been on X any time in the past few months, you’ve probably seen these viral tweets saying ‘Just ask ChatGPT to build your website!’ ‘Web development is dead!’ ‘Why learn to code when AI can do it for you?’
如果您在过去几个月里经常使用 X,您可能会看到这些病毒推文:“只要让 ChatGPT 来构建您的网站即可!”“Web 开发已经死了!”给你的?
And I’ll be honest - they’re not entirely wrong. AI can write code. Sometimes pretty decent code.
老实说,他们并不完全错。 AI可以写代码。有时相当不错的代码。
But here’s what those viral posts aren’t telling you, because they’re mostly written just for the engagement, without any real thinking.
但这些病毒式帖子并没有告诉你这些,因为它们大多只是为了参与而写的,没有任何真正的思考。
I spent some time building the same project twice. Once with pure self artisanal coding, once with AI. And yes, the AI version was faster… at first. But then something interesting happened.
我花了一些时间两次构建同一个项目。一次是纯粹的自我手工编码,一次是人工智能。是的,人工智能版本更快……一开始。但后来发生了一些有趣的事情。
The AI-only version was like a house of cards. It looked good, but:
仅人工智能版本就像纸牌屋一样。看起来不错,但是:
- Dependencies were outdated
依赖项已过时 - Security vulnerabilities everywhere
安全漏洞无处不在 - Performance was terrible
…and sometimes it generated garbage code.
性能很糟糕……有时它会生成垃圾代码。
The only way I could recognize all of that was because I already knew how things worked.
我能够认识到这一切的唯一方法是因为我已经知道事情是如何运作的。
The AI confidently wrote code using outdated React patterns. It mixed different versions of libraries. And unless you already know modern web development, you won’t even realize there’s a problem.
AI 自信地使用过时的 React 模式编写代码。它混合了不同版本的库。除非您已经了解现代网络开发,否则您甚至不会意识到存在问题。
So point #1, AI is great if you’re already a developer. A senior developer, that knows its stuff inside out.
所以第一点,如果你已经是一名开发人员,人工智能就很棒。一位资深开发人员,对它的东西了如指掌。
Point #2 I want to make is that the code generated by AI didn’t feel mine. I discussed this with several people. Those working in teams didn’t really mind because their working life already involves working with code they don’t fully know, or understand.
我想说的第二点是,人工智能生成的代码并不像是我的。我和几个人讨论过这个问题。那些在团队中工作的人并不介意,因为他们的工作生活已经涉及到使用他们不完全了解或理解的代码。
Especially of course in large codebases. I’ve been there too.
当然,尤其是在大型代码库中。我也去过那里。
But these days I’m working on many small projects and I’m the only dev working on them, and I feel at home in any codebase, any time I open a project. Because I wrote all of that code. And AI kinda ruined that.
但现在我正在处理许多小项目,而且我是唯一负责这些项目的开发人员,无论何时打开一个项目,我在任何代码库中都感觉很自在。因为所有代码都是我写的。人工智能有点毁了这一点。
As a result, I know my code less well, and I must do extra effort to “read” the code and understand it after it’s been written.
结果,我对我的代码不太了解,我必须付出额外的努力来“阅读”代码并在编写后理解它。
Good luck maintaining that code if you’re the only one that’s working on it, and you don’t understand what it does.
如果您是唯一正在处理该代码的人,并且您不明白它的作用,那么祝您维护该代码好运。
But using the AI to do small tasks is great. ⠀
但使用人工智能来完成小任务是很棒的。 ⠀
AI is like having an insanely fast junior developer who works for free or for $20 a month. Like any junior dev, it needs supervision, but unlike a junior dev, you skip the mentoring.
AI 就像有一个速度极快的初级开发人员,他免费工作或每月 20 美元。与任何初级开发人员一样,它需要监督,但与初级开发人员不同的是,您可以跳过指导。
One thing I do a lot is asking the AI to improve code I write, to see if it can be written in a more concise way, or more optimized.
我经常做的一件事是要求人工智能改进我编写的代码,看看是否可以以更简洁的方式编写,或者更优化。
This is what I call the Lazy Trap. Sure, you can do this. And for simple projects, it might even work. I feel it removes some intellectual work, and I can look at it with nostalgia, but then I think of all the free time I get which I can invest in other projects, or in walking my dog more.
这就是我所说的“懒惰陷阱”。当然,你可以做到这一点。对于简单的项目,它甚至可能有效。我觉得它消除了一些智力工作,我可以怀旧地看待它,但后来我想到我得到的所有空闲时间都可以投资于其他项目,或者更多地遛狗。
Let’s talk about what this means for jobs, because this is probably why you’re watching.
让我们谈谈这对就业意味着什么,因为这可能就是您观看的原因。
Yes, some web development jobs will disappear. But not all of them.
是的,一些网络开发工作将会消失。但不是全部。
The truth is, AI isn’t replacing web developers - it’s replacing mediocre web developers. The “learn HTML in 2 weeks and get hired” era? That’s over.
事实是,人工智能并没有取代网络开发人员,而是取代平庸的网络开发人员。 “两周内学会 HTML 并受聘”的时代?就这样结束了。
But here’s the exciting part - and why I’m actually optimistic about the future of web development.
但这是令人兴奋的部分 - 以及为什么我实际上对 Web 开发的未来感到乐观。
AI is changing the game in ways nobody’s talking about. Instead of thinking “AI vs Developers,” think “AI + Developers.”
人工智能正在以无人谈论的方式改变游戏规则。不要思考“人工智能与开发人员”,而要思考“人工智能+开发人员”。
Here’s my three-step strategy for becoming an AI-proof developer:
以下是我成为一名人工智能开发者的三步策略:
First, Use AI as Your Mentor. Especially as you learn, but even once you’re good, because you’ll always be learning anyway.
首先,使用人工智能作为你的导师。尤其是当你学习的时候,但即使你已经很好了,因为无论如何你都会一直在学习。
- Get explanations 获取解释
- Debug your code 调试你的代码
- Learn best practices 学习最佳实践
Then, Level Up to using AI as a Coworker
然后,升级为使用 AI 作为同事
- Write the core logic yourself, then hand it off the the coworker, review the code, learn from it.
自己编写核心逻辑,然后将其交给同事,检查代码并从中学习。 - Let AI catch your mistakes
让人工智能发现你的错误
Finally, Graduate to AI Manager
最后,晋升为AI经理
- You architect the solution
您设计解决方案 - AI writes it AI写的
- You manage the AI bots
您管理人工智能机器人 - you ship stuff, owning the result.
你运送东西,拥有结果。
AI will only get better. In just a short amount of time we’ve gotten amazing tools including GitHub Copilot, ChatGPT, Claude, Cursor. And tools like v0 and Bolt are doing giant leaps.
人工智能只会变得更好。在短短的时间内,我们就获得了令人惊叹的工具,包括 GitHub Copilot、ChatGPT、Claude、Cursor。 v0 和 Bolt 等工具正在取得巨大飞跃。
Every code editor and dev tool will have AI, AI capabilities will keep improving and The gap between AI-savvy and AI-resistant developers will grow.
每个代码编辑器和开发工具都将具有人工智能,人工智能能力将不断提高,精通人工智能和抗拒人工智能的开发人员之间的差距将越来越大。
So, is AI making web development pointless?
No - it’s making mediocre web development pointless.
那么,人工智能会让网络开发变得毫无意义吗?不——这会让平庸的 Web 开发变得毫无意义。
But it’s also creating opportunities for developers who adapt. You can:
但这也为适应的开发人员创造了机会。你可以:
- Build your own apps faster than ever
比以往更快地构建您自己的应用程序 - Focus on solving real problems
聚焦解决实际问题 - Let AI handle the boring stuff
让AI处理无聊的事情
We’ll never see non-developers using AI to build apps, tho.
不过,我们永远不会看到非开发人员使用人工智能来构建应用程序。
You’ll always have to be a developer to build software anyway. And there’s no “fast-track” for this. Invest time in learning Web Development, especially the fundamentals, really well. So you’ll be able to know when the AI is doing its job correctly. (and the best way to do that is through my Bootcamp).
无论如何,你总是必须成为一名开发人员才能构建软件。而且这没有“快速通道”。投入时间学习 Web 开发,尤其是基础知识,学得很好。因此,您将能够知道人工智能何时正确执行其工作。 (最好的方法是通过我的训练营)。
The question isn’t whether AI will replace developers. The question is: will you be the developer who gets replaced, or the one who leverages AI to become irreplaceable?
问题不在于人工智能是否会取代开发人员。问题是:你会成为被取代的开发者,还是利用人工智能变得不可替代的开发者?
→ 这是我最新的 YouTube 视频
→ I wrote 17 books to help you become a better developer, download them all
at $0 cost by joining my newsletter
→ 我写了 17 本书来帮助您成为更好的开发人员,加入我的时事通讯即可以 0 美元的价格下载它们
→ JOIN MY CODING BOOTCAMP, an amazing cohort course that will be a huge step up in your coding
career - covering React, Next.js - next edition February 2025
→ 加入我的编码训练营,这是一门令人惊叹的队列课程,这将是您编码职业生涯的一大进步 - 涵盖 React、Next.js - 下一版 2025 年 2 月