logoalt Hacker News

rustyboltyesterday at 9:29 PM6 repliesview on HN

I have noticed a trend recently that some practices (writing a decent README or architecture, being precise and unambiguous with language, providing context, literate programming) that were meant to help humans were not broadly adopted with the argument that it's too much effort. But when done to help an LLM instead of a human a lot of people suddenly seem to be a lot more motivated to put in the effort.


Replies

zdragnaryesterday at 9:36 PM

In my years of programming, I find that humans rarely give documentation more than a cursory glance up until they have specific questions. Then they ask another person if one is available rather than read for the answer.

The biggest problem is that humans don't need the documentation until they do. I recall one project that extensively used docblock style comments. You could open any file in the project and find at least one error, either in the natural language or the annotations.

If the LLM actually uses the documentation in every task it performs- or if it isn't capable of adequate output without it- then that's a far better motivation to document than we actually ever had for day to day work.

show 3 replies
hinkleyyesterday at 10:09 PM

Paraphrasing an observation I stole many years ago:

A bunch of us thought learning to talk to computers would get them out of learning to talk to humans and so they spent 4 of the most important years of emotional growth engaging in that, only to graduate and discover they are even farther behind everyone else in that area.

show 1 reply
jpollockyesterday at 10:09 PM

Documentation rots a lot more quickly than the code - it doesn't need to be correct for the code to work. You are usually better off ignoring the comments (even more so the design document) and going straight to the code.

show 1 reply
jimbokuntoday at 3:11 AM

Well maybe if those people were managing one or more programmers and not writing the code themselves, they would have worked similarly.

whattoday at 4:25 AM

The difference is that they’re using the LLM to write those readmes and architecture and whatever else documents. They’re not putting any effort in.

cmrdporcupinetoday at 12:14 AM

I've had LLMs proactively fix my inline documentation. Rather pleasant surprise: "I noticed the comment is out of date and does not reflect the actual implementation" even asking me if it should fix it.

show 1 reply