logoalt Hacker News

dwedgetoday at 12:55 PM3 repliesview on HN

As much as I agree with this article, I feel that there's a logical flaw here. The author admits that it's difficult to measure bad code - but continues with the assertion that it exists. If the only negative to "bad code" is that it's difficult to maintain once the author has left or difficult to refactor, then the question really is whether or not LLMs will continue to be able to maintain their spaghetti code.

Just because it's bad for a human doesn't necessarily mean everything will fall apart - unless a human has to maintain it unaided.


Replies

bakugotoday at 1:23 PM

I think the key distinction is that it's difficult to determine whether a single commit or pull request is bad code at a glance, but it's easy to determine when the codebase as a whole has gone bad due to many low quality commits.

The latter often doesn't even require looking at the code, you can usually feel it just by using the software. From my experience, all software primarily written by AI is full of little bugs and inconsistencies that reflect bad code architecture (such as two very similar pieces of functionality in two different places behaving in wildly different ways, due to the AI being unaware of the first when asked to implement the second and writing the code twice)

show 1 reply
vividfriertoday at 12:59 PM

[dead]

ttultoday at 1:22 PM

I think this kind of blog post reflects a fear of infantilization by AI. By asserting that only humans know what good code looks like, the author is attempting to mend his own ego.

Build the systems around the code and let the agents do their work.