r/AIcodingProfessionals • • 11h ago

Discussion Even if AI writes perfect code, you should still understand it

https://wasp.sh/blog/2026/12/03/should-you-read-ai-code

I've been thinking about this for a long time, and I finally sat down and gave it more thought. I felt a bit uneasy about digging in at first, since I thought I'd conclude it no longer makes sense (I'm a coder at heart).

But I ended up on the opposite side: a developer who understands how things work and uses AI will build a far superior product to one who just prompts (given that building "the best" product is what you're aiming for).

A few things I landed on:

  • Vibe coding is a totally valid choice. Prototypes, personal tools, quick experiments: I don't read that code either.
  • For stuff you want to be great, go "1.5 levels deep". Know your framework well, and be willing to dig one layer below it when you're stuck.
  • Agents feel no friction. When you write code yourself and everything feels hard, that's a signal your approach is off. Agents will happily keep going the wrong way, and you lose that signal.
  • Want to read less code? Generate less code. Use higher-level tools and abstractions, so there's simply less to understand.

Wrote the whole thing up here (it starts in Renaissance Florence, I had some fun).

I'd love to hear your takes and whether you think this reasoning makes sense.

6 Upvotes

8 comments sorted by

1

u/alchebyte 8h ago

coherence will always be the source of value. if inference happens and no one witnessed it was there coherence?

1

u/Banner80 8h ago • Bravo

It is directly proportional to how much you can trust and how much that trust matters.

In 2008, the American financial system took down the entire world's economy when real estate derivatives failed. There are many reasons why that happened (including fraud), but one of primary problems was that the derivatives were complicated and their risk had been deeply miscalculated by the people trading them.

Buffett called these things "weapons of mass destruction" because he argued that something that has this much power should be understood by the people controlling it and trading it, but 2008 showed that financial participants trading these derivatives were taking the institutional valuations at face value and were neither confirming the risk assessment nor had the skills to do so if they wanted to.

Very few people were truly analyzing these derivatives. Anyone with an advanced degree in financial analysis or math could take a week to analyze one of these packages, but in practice almost nobody was paid to do that work. Burry was one of the exceptions, he was a math fan and took the time to deeply analyze these bundles and found the errors in risk pricing. He would eventually become rich trading against them, but almost nobody cared when he raised the alarm.

We also had Prof. Shiller of Yale who was dedicated to research of the real estate market. He wasn't doing derivative-level math, his numbers were much simpler and were telling a similar story about a market valuation that simply couldn't hold. Shiller was working from market theory principles: people are buying houses they don't live in, while claiming salaries they don't have, hoping to later sell these properties to a greater fool that can't afford them; there's just no way this holds in the long term. Both Burry and Shiller found the problem from very different angles by scrutinizing what was visible to them and recognizing the pieces didn't fit. Shiller started sounding the alarm as early as 2004. By 2005 he was already saying a market collapse was imminent and the damage would be historical, and people laughed him off. It took 3 more years for the crash to materialize.

The moral of that story:

Everyday we do things we don't understand, and we take the judgement of institutions at face value. It's not everyone's job to have fully analyzed everything that goes by their desk. But it is SOMEONE's job to ensure the quality of every thing that has value. And the quality matters proportional to the damage it can cause if we get it wrong.

For things that barely matter, letting Opus vibe code them is likely more quality than was needed in the first place. For things that could take down an organization, the need for quality scrutiny is high.

Yet, there's not a single way to assess quality. For most things, there are many ways to probe a solution to confirm that it works as intended, to test its limits and to stress it to see if it will hold. A lot of programmers today think that the way to guarantee code is to be able to open the code up and do an expert technical analysis (the Burry way). But managers never think that way, because managers can seldom open the code and do expert analysis. Still, managers hold the highest responsibility for quality because the consequences of errors will land on their desk first. Managers have to learn to trust their team by designing work processes that have quality assurance built in, and they have to require sufficient stress testing to become satisfied that the solution is ready.

As AI takes over more code and we deploy more complicated solutions faster, the role of the "developer" shifts away from code and towards management. It won't be long before even the best of us can't even read some of the more complex code, let alone keep up with the rate of deployments. So we need to think like managers. How do we ensure that the solutions was tested fairly? What approaches to stress testing will give us confidence that we are deploying quality? What menu of options do we have to require technical-level analysis (Burry) or principle level analysis (Shiller) that can help us confirm the quality, or surface problems that require fixing.

Our current situation reminds me of that 2008 debacle because of the key problem: We have people qualified to open up the code, but are we all going to keep confirming the code by hand, or are we going to get used to nobody opening it up anymore? In 2008 we had people that could scrutinize those derivatives, but we settled into a system in which it was nobody's job to do so. Worse, at some point the solution packages get so complicated that even the people that in theory are qualified to review the code might not be able to do it in practice because it takes too long. So no matter how you feel about this, we are racing towards a state in which it is simply too much of a luxury to expect that every line of code will be reviewed by hand.

If we get used to "trading" on the code of the AIs that nobody opens up, are we deploying weapons of mass destruction in Buffett's definition: something that was too important to not be fully understood by the people controlling it day to day. This is what most programmers fear about this new AI era, for obvious and good reason.

But we can and have to develop new paradigms for ensuring quality. We need approaches that ensure quality by booth technical and principled means that don't require a human opening up the package. The AI era is not just about letting robots write code, but about coming up with a whole new class of tools and processes to ensure those robots are on rails and can deliver reliable quality. To ensure we know how to test for that quality and can confirm with confidence. Buffett's main point wasn't that derivatives shouldn't exist, his main point was that whoever is deploying this stuff should be damn sure they have it all under control, and that anyone involved in trading this is able to demand clarity around the quality and can tell the difference between a good solution and a shaky one.

So our problem boils down to something somewhat simple in spirit: what do we need to do to be able to trust this. That's the engineering problem of our era. Not babysitting the robot's code, but building a golden cage around it that allows us to trust the quality of the robot's output. We need to figure out exactly what needs to exist so we can trust this, because in a few years we won't be able to look at the code at all.

2

u/matijash 4h ago

Wow! Very nicely put. Thank you.

1

u/unwashed_but_washed 1h ago

Yes my throwaway application code is just as important as the derivatives market. I don't think all code is equally critical.

1

u/deezwhatbro 6h ago • Bravo

If you’re not reading the assembly output and ensuring it’s up to quality, then are you even a coder?

1

u/atehrani 1h ago

Agreed, that said it is far easier to understand something you wrote, than something you read. Just human nature....

0

u/kartblanch 9h ago

The thing is… you dont have to. But if you do understand how to write code it is very readable.

0

u/golfstreamer 5h ago

I don't know. I think whether or not you understand it depends on your job. For my job I feel like I do have to understand it. I think it may be because I work at a defense company and keeping our software up and running properly is important. We want the system to be intuitive and want to be able to recover from errors easily. We can't do that if we don't understand the system.