r/coding • • 1h ago

If AI writes perfect code, should you understand it?

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

13 comments sorted by

18

u/KokopelliOnABike 58m ago

Yes!

If you have ever done prod support and get a call at 2:00am you'll understand why.

2

u/8dot30662386292pow2 55m ago

Feed the transcript of the call to AI and make it do the work?

If the AI makes perfect code, why would the human be needed (I'm not saying it does, I'm just pointing out that your argument is flawed).

1

u/creaturefeature16 52m ago

For those times when that perfect code inevitably breaks because all code breaks at some point, and when you do so you receive this in response:

  • Error, fetch failed, try again later

There's no such thing as perfect code. Period. Everything breaks, and that includes model providers.

1

u/NoSingularities0 46m ago

Because the transcript of the call may not matter to the AI. Just because the AI was capable of writing "perfect" code doesn't mean that the AI even understands it or can troubleshoot issues with it running in a different environment (production).

0

u/jackbrux 36m ago

When that happens AI fixes it too

7

u/Ythio 50m ago edited 29m ago

Isn't understandable part of your definition of perfect ?

Why am I employing you for if you don't understand the software better than a kid picked off high school ?

I make financial software. If I can't review the calculations, who can ? Should we trust any number that comes out without knowing how it is computed ? Would you trust us with your savings ?

1

u/SpiderJerusalem42 33m ago

I feel like this has to come from a misinformed understanding of what programming is intended for.

2

u/creaturefeature16 51m ago

"Machines create perfect vehicles, do we still need people who understand how they work?"

2

u/TheRealSeeThruHead 47m ago

I mean how do you define perfect code

For me it’s always been ona bunch of metrics:

Is it simple, have low cognitive overhead, does it encode the domain (types etc)

So like what makes code perfect or not perfect is entirely about can humans understand it and change it

And none of that has changed with ai

Developer experience and agent experience is almost 100% overlap

Any pits of success your software gives a human it also gives a much dumber agent

Ai has allowed us to spend the time to make our software more perfect (by my definition)

So yeah the question doesn’t make sense to me

1

u/TheVenetianMask 37m ago

When something goes wrong the judge should use a LLM to produce a perfect sentence and you don't get to hire a lawyer, just "trust me bro" and a deadline to pay.

1

u/dragongotz 23m ago

All code if perfect until it is not. "It works on my machine" If you do not understand the code once an issue occurs you will not know where the multiple possible locations where the code that could be causing the issue might be, let alone why it is causing the issue, or the code changes (if any) will solve the issue. AI can defiantly help in finding or fixing the code issue, but might not or 'Fix' the code in a completely appropriate way.

AI is like a junior developer that is to smart for their own good. If you let them do what ever they want, they will rewrite everything, make unnecessary changes, use unauthorized tools, and cause general havoc unless closely monitored.

1

u/pi3832v2 50m ago

Circular logic—if you can't understand it, it's not perfect.