Please keep code descriptions simple

50 points by Aks


hgrsd

At work, I tried to politely request (as part of a PR template): "please write your own description that explains the motivation for this change and any important design decisions that should be scrutinised / focused on in the review".

9/10 times, the LLM du jour chucks out the entire template and writes a tome of explanation, including counts of how many tests it added, checkboxes for each passing one, long tangents on trivial things. Reviewing has become a lot of fun.

mitchellh

I've always (before AI, unrelated to AI) preferred overly verbose comments. Its shocking to some people I've worked with. A lot have come around to really liking it, a lot despise it. But it's my style.

For example, see this method:https://github.com/ghostty-org/ghostty/blob/4789bbdb9ef9e2a878b92d85ee89faeba1f48a87/src/termio/Exec.zig#L1408 but thats my general style everywhere in all languages across the last 15 years of my career. In the age of AI, I enshrine this in my AGENTS.md too. To be clear, the linked file and comments were human written, no AI at all.

My reasoning is pretty simple: it enforces a double-entry rule. If the comment doesn't agree with the code, either the comment is wrong, or the code is wrong (or both, but less likely). I've caught so much in my career by simply asking "these don't agree, which is right?" And, again, in the age of AI, this works that way too.

But at the end of the day, I think people should just comment however they want for their own projects. Its for you (the code author) after all.