logoalt Hacker News

baptou12today at 3:32 PM3 repliesview on HN

I agree, but “write code like a human will maintain it” can also be limiting: if LLMs reduce the cost of maintaining more explicit or verbose code, we should use that to raise the standard, not preserve compromises made for human convenience.


Replies

bluGilltoday at 3:42 PM

Will it? Okay, first we need to ask "which humans" - there are many humans who don't see a point in the things we call best practices. I've work with programmers who are faster than me to getting low bug count code out the door, despite writing 70,000 line functions - he didn't understand why nobody else wanted to add new features to his code.

The standards most "good developer" humans demand were learned from many decades of painful experience about what happens when you do it the other way. These are not only compromises for human convenience, they often are things that we have learned will come back to bite you later even though they just add more work today for no gain.

sheepttoday at 4:08 PM

Aren't LLMs trained on and optimized for human code? In general, anything that is concise is more effective as context for the LLM, whether it be your CLAUDE.md or code, since LLMs are meant to model human language.

show 1 reply
WillAdamstoday at 4:04 PM

However, an argument can be made that such Literate Programming code can be easier/better for an LLM to work with:

https://news.ycombinator.com/item?id=47300747