If AI writes perfect code, should you understand it?
Yes, AI knows every programming language and library better than you do.
Yes, AI is better at architecture and clean code.
Yes, AI writes safer code and covers more edge cases.
If any of this isn't true yet, it will be soon.
Still, there is a good reason to read the code and understand how things work.
And it’s not catching bugs - it’s building a great product over a “good enough” one.
Yes, you have a factory now. But so does everyone else.
Imagine being a painter back in Renaissance Florence. Painting is a huge trend, and everyone is super excited about it, so you decide to give it a try, too.
But you are also filthy rich and have a bunch of assistants working for you. So you never touch the brush, nor do you do the strokes yourself. You simply tell your workers what you want and check in occasionally to see the result, and give feedback.
And this works! Paintings are getting made, one after another, and people hang them on their walls. Portraits, sunsets, apples, and whatnot.
But soon, every rich family in Florence has a factory just like yours, and they make exactly the same kind of paintings. It's hard to stand out, and you're getting fewer and fewer clients.
You talk to your colleagues, and they all see the same thing. But somehow, there is only one person who seems to be doing better than ever: a weird, bearded guy named Leonardo from the small town of Vinci.
The brush pushes back
The word on the street is that Leonardo’s paintings are just different. People can’t quite put their finger on why, but they can definitely feel it when they look at them. The colors are deeper, the level of detail is amazing, and they somehow feel almost alive.
You decide to drop by Leonardo’s atelier and pretend you’re a customer, just to see what’s going on there. You enter, and nothing seems unusual at first: Leonardo also has a bunch of assistants who seem to be doing most of the work, while he walks around and gives feedback.
But as you stay longer, you start noticing differences. It seems that Leonardo has some sort of lab in the back of his factory. It’s full of half-painted canvases, books on the theory of painting, and jars of pigment lying on the ground (paint in tubes arrived only in Impressionism, I learned).
You ask an assistant in passing about it, and he tells you that Leonardo spends a lot of time there. He is constantly learning about new painting techniques, testing them out, and practicing them himself.
Most of it doesn't work. A color turns muddy, a glaze cracks, a face comes out flat, and he starts over. But every failure teaches him something about the paint that no amount of giving orders ever could. That's how he figured out how to blend shadows so softly you can't tell where one ends and the next begins (It’s actually a real “Leonardo” thing, sfumato, I learned again).
He also talks with his assistants, a lot. He teaches them what he discovered, but also wants to know every detail about what they did and what was hard, and they constantly discuss how to improve things.
You start wondering if there’s something to it, and whether you should bother to learn a thing or two about painting yourself.
Quality(product) = Understanding x Ability to build
Not to anyone’s surprise, I’m actually talking about coding with agents. The point of my Leonardo example was that the quality of what you make is ultimately the product of two factors:
- How well you understand the problem you’re solving - if you’re painting an apple you should know what an apple looks like, how it gleams in the sun, etc. If you don’t, your apple-loving client won’t be very satisfied.
- Your ability to build - how well you know your tools and how deep you're willing to go with them. That decides how stunning you can make your painting, whether you mix the paint and make the strokes yourself or hand it over to your assistants (ok, agents).
If either one of the two is zero, the whole thing goes to zero - e.g., you’re not even aware of the problem, or don’t know how to use AI for coding.
Beyond that, everything is a trade-off you’ll be making, depending on: what you're building, for whom you’re building, and how fast you need to get it out.
Maybe you shouldn’t care
The truth is, not every app should be a Mona Lisa. Sometimes you just need a nice painting of a lake to hang in your hallway, and you aren’t willing to pay much (or anything) for it.
Another case I see often with myself is prototyping and experimenting. I have an idea in my head, and I just want to see it live, touch it, and feel what it’s like. I’m not interested in the code at all, I’m interested in the product (idea) only.
So, when should you care, and why?
You are still paying for Linear
The case for caring about your brush technique (or code) is that when everyone owns the factory, it’s pretty much the only thing that matters.
Let’s take Linear, an issue-tracking app, as an example. It’s Q4 of 2026, we all wield the best models money can buy, and we still haven’t vibe-coded our own version of it. Why?
Because Linear is the Mona Lisa of all the Jiras in the world. Their team spent years mastering their craft and developing the most beautiful, snappiest experience there is, powered by their own sync engine and other cool pieces of engineering.
You could potentially decompile it, reverse-engineer it, and, with enough tokens (DHH, stay away), knowledge, and luck, come up with exactly the same thing. But by the time you’ve done this, the Linear team has spent more time in their lab experimenting with new snapping techniques and has made their app even snappier. So now you have to catch up.
That is the part you can’t copy: having a deep understanding of the problem you’re solving and the technology used to build it. You have the same AI as the Linear team, but they know what to ask it for next, and you don’t.
Two types of understanding - depth and width
There is something about engaging with your codebase, be it reading it, visualizing it, or talking with your agent about it.
So if you'd like to pay more attention to it, how should you go about it? The mental model I like is two axes you can move along. Let's say you're building Linear:
- Depth - how many layers of the underlying stack you understand. You might know React and MobX, be decent at Node.js, but have little idea about databases beyond using an ORM.
- Width - for how many features you can explain how they work. For example, you might be deeply familiar with the payment logic, but have no idea how your UI manages the app’s state.
How far you go on each axis is, again, a trade-off.
How deep should you go, and why 1.5?
My rule of thumb is "one and a half". "One" means you know your code's level of abstraction well, e.g., a web framework like Wasp or Laravel. "A half" means you're willing to sometimes dig a level deeper, e.g., learn about React best practices or how the virtual DOM works.
This has worked well for me because:
- Knowing level one well (framework) allows me to move fast. I know how to model the problem in it correctly and I can easily steer agents.
- Knowing “half” of level two (e.g. React fundamentals) shows me what I don’t know. So when I get stuck, I know where to look.
You see the same pattern in more complex domains, like game development. Using an engine is great, but sometimes you need to write your own shaders or dig into the engine's source to get the job done.
The more you know, the less you need to read
What about width? Should you read every pull request your agents make and try to understand how every piece works?
If your goal is to understand the product (and not just prototype), you should probably read and think a lot in the beginning. As you get comfortable with your codebase, you'll start noticing patterns and develop an intuition for which parts you can skip or defer.
This is also why, as counterintuitive as it sounds, it's sometimes easier to "vibe code" in a big, mature codebase than in an early, fast-changing one. A mature codebase has accumulated a lot of shared knowledge and supporting systems, like testing and QA. And many new features are just variations of existing ones, so there's a pattern to follow.
In a fresh codebase, on the other hand, everything is happening for the first time. The decisions you make now can stay with you for a long time, so it pays off to build solid foundations before going full speed.
The whole trick is knowing when you don’t need to read the code. And the only way to get that ability is by reading and writing a lot of code.
Coding is writing is thinking
You carefully set out your brushes, colors, and canvas. A nice, big apple sits on a golden stand in front of you, and you're ready to begin. But as you paint, everything somehow goes wrong. The brush keeps dripping, and every stroke feels like grinding. You take a step back and realize you've been painting on the wrong side of the canvas all along.
The same goes for writing, and coding is just writing in a very specific language. As you design and write your code, the names, data structures, and types you come up with tell you how well you understand the problem you're dealing with.
If everything is hard and you feel like you're constantly swimming against the current, you probably need to change something. Stepping back and rethinking will sharpen your understanding, and you'll move faster and with more confidence afterward. Maybe you'll even realize you should place your apple differently, or pick a different apple altogether.
The issue is, agents feel no friction. They'll happily keep painting on the wrong side of the canvas and never tell you something is off. That friction was carrying information, and now nobody's getting it.
If you want to read less code, write less code
This is one weird trick they don’t want you to know. Instead of (or even better, alongside) all the AI “code-hardening” and “simplify my code” skills, why don’t we start by using the tools that let us produce less code (to get the same result) in the first place?
These tools are called abstractions, and we, as humanity, have put a lot of effort and love into them so far - languages, frameworks, and libraries. I’d argue they are what made it possible to have such efficient LLMs today (imagine if AI had to learn to build UIs from assembly code instead of React).
Yes, every layer of abstraction takes away some flexibility and sometimes performance. But what you get in return is understanding, and that is what allows us to build more complex systems faster.
Take how this web framework, Wasp, lets you define a full-stack app (disclaimer: we’re building this):
export default app({
name: "askTheDocuments",
auth: {
userEntity: "User",
methods: { google: {} },
onAuthFailedRedirectTo: "/",
},
spec: [
route("RootRoute", "/", page(Main)),
query(getDocuments, { entities: ["Document"] }),
action(askDocuments, { entities: ["Document"] }),
authSpec,
adminSpec,
paymentsSpec
],
});
Authentication takes a few lines, and the rest you can understand at a glance. It all composes by feature: auth, admin, payments, and so on. Run wasp show spec, and you get a map of the whole app. The whole idea behind Wasp is that it is a framework built to make it easy to understand your app, for you and your agents.
What's left is the code that's actually unique to your app, like what happens inside askDocuments. Unlike authentication and routing details, that's the code worth thinking about.
The choice is yours. Just know that you’re making one
The point I wanted to make in this post is not that “vibe coding” is bad, or that caring about your code is "the right" thing to do. Both are choices, and each comes with consequences.
I am personally very excited about using AI to build more truly great products, better than was previously possible for most people - better terminals, better frameworks, better issue trackers, better banking apps. To get there, you can’t put the brush down.
On the other hand, I’m also excited about building “good enough” products. If I need a tool that works only for me, I can simply summon it into existence. It doesn't have to work for anybody else, look nice, or even be maintainable. It can just exist, solve my problem, and that's enough.
Just know what you're trading away when you stop looking at the code. Otherwise, you're not making a choice, you're simply doing the only thing you know of.
