Hacker News new | ask | show | jobs
by somesortofthing 55 days ago
I find AI code usually looks worse than it actually is. It's overly verbose, confusing, and littered with fallbacks that mean that if something goes wrong it falls through a million layers of try/catch and moves the stack trace somewhere completely unrelated to where the error actually happened, but in terms of the actual functionality it works much better than any similar-looking code written by a human would.
1 comments

Such code as you describe is still bad code, though, because it’s difficult to reason about it, both for humans and LLMs.
It's bad code, but it's not pretending to be better than it is.