Hacker News new | past | comments | ask | show | jobs | submit
I think the only thing that matters are:

* the code does what you want

* it has no security holes

* it's able to be updated in the future without breaking everything

if the code looks like spaghetti, it doesn't really matter anymore, because humans are editing it. The only one of those three that I'm not entirely comfortable with yet is the security issue, and I don't know how to resolve it without actually having a human audit the code. If we figure out how to ensure security of AI generated code, there will be no point to code review anymore.

> if the code looks like spaghetti, it doesn't really matter anymore

Genuinely curious -- are others here still seeing lots of spaghetti code from frontier models? It happens occasionally for me, but only when editing old hand-written code bases that honestly had a bit of spaghetti there already (you might say the model simply followed the house style ... :/ )

For new agentic coding projects, these is generally very nicely structured from the start and extend well, IME. Yes, sometimes it needs a refactor if the code is pushed well outside the bounds of its original scope -- but hand-tooled code will need that just the same.

loading story #50544061