3 ms·
LLM comments for code are almost unfailingly completely redundant or impenetrably verbose bordering on word salad.
by metek 1mo ago
LLM comments for code are almost unfailingly completely redundant or impenetrably verbose bordering on word salad.
- shunia_huang 1mo agoSometimes I try to add comments in a new session and the agent just don't have enough context for it to give a comprehensive sentence with full context on the why, then the agent will just describe what it does. Human comment is in another level to answer the questions mainly like "why do it like this" for the later collaborators or the forget-ed self, so the important blocks live when it is needed and can be eliminated when it does not.
- jodleif 1mo agoAlso, the language model might not fully understand the code then add a comment, then the next iteration will treat assumptions in the comment as the truth.