Hacker News new | ask | show | jobs
by yuliyp 1978 days ago
This is a very simplistic of what code is and the role it plays in a system.

There are many implementations that can fulfill a set of requirements. Not all of them are created equal. The ways in which they behave as the system changes can be wildly different. Well-written code will be able to handle those changes gracefully. Poorly-written code may end up proving brittle and bug-prone. Generated code will be completely unpredictable.

Imagine you're trying to build a street network for a city. Some designs are much more predictable than others. If you've played Factorio, the distinction between a spaghetti base and one that has some design is abundant. Even if they currently fulfill the same requirements now, the ability to improve upon and reason about how it will behave after changes is vastly different.

1 comments

I don't know what you're arguing against but it sure isn't what I wrote.

"Code generation only needs to generate code with n bugs where n is less than the number of bugs a human developer generates for it to have usefulness, and maybe some other factor of severity where they are generally less severe than human developers."

Point to the part you're arguing against because you way extrapolated what "have usefulness" means I think.

It's of limited usefulness if it just leads to a system that will end up performing worse / less predictably.