Hacker News new | past | comments | ask | show | jobs | submit
The only reason it's a spaghetti mess is because it's not being prompted correctly by an expert.
Are these experts in the room with us right now? Because if even the creators of Claude seemingly can't prompt non spaghetti code (see: Claude Code leak), I'd like to know who can.
How do you know they were even trying in the first place? Have you analyzed the prompt they used?
loading story #49217788
Speaking for myself - they may not have cared to.

I can absolutely prompt AI to following established patterns and produce nice, clean output in a legacy codebase. I also have a completely separate set of skill files that I’ve been building organically by allowing the agent to do make most decisions about conventions. The latter produces code that would be a nightmare to modify by hand, but I’m still able to iterate on it many times faster than I could in the codebase where code quality is a requirement.

“Code quality” is mostly “human readability”, and I’m simply not sure that’s a valuable attribute anymore.

loading story #49217759
100%

A novice writing code by hand could also write spaghetti code

If you've worked in enterprise software, you might have seen that even competent professionals can write spaghetti code

At this point AI really is just garbage in garbage out

Haha it’s so comical how predictable downvotes are - which is a proxy for knowing what developers sensibilities are

Wild to me that we see this even in what is a relatively more “sophisticated” forum

loading story #49218156