logoalt Hacker News

phtriviertoday at 11:33 AM6 repliesview on HN

Yes, if it was made for human comprehension or maintenance.

If it's entirely generated / consumed / edited by an LLM, arguably the most important metric is... test coverage, and that's it ?


Replies

mdavid626today at 12:14 PM

Oh boy, you couldn't be more wrong. If something, LLM-s need MORE readable code, not less. Do you want to burn all your money in tokens?

grey-areatoday at 11:57 AM

LLMs are so so far away from being able to independently work on a large codebase, and why would they not benefit from modularity and clarity too?

show 1 reply
ulrikrasmussentoday at 7:49 PM

Unit testing is much much harder when you have functions spanning thousands of lines and no abstractions. You have to white box test everything to ensure that you hit all code paths, and it is much more expensive to maintain such tests, both as a human and LLM. I don't think this can be ignored just because LLMs are writing the code.

konarttoday at 11:53 AM

Can't we have generated / llm generated code to be more human maintainable?

mrbungietoday at 12:16 PM

Can't wait to have LLM generated physical objects that explode on you face and no engineer can fix.

show 1 reply
Baykotoday at 12:08 PM

Ye I honestly don't understand his comment. Is it bad code writing? Pre 2026? Sure. In 2026. Nope. Is it going to be a headache for some poor person on oncall? Yes. But then again are you "supposed" to go through every single line in 2026? Again no. I hate it. But the world is changing and till the bubble pops this is the new norm

show 2 replies