logoalt Hacker News

wtallis • yesterday at 3:49 AM • 4 replies • view on HN

I don't usually see Claude leaving comments that are obviously out of date compared to the code. The problem is that the comments are just a dumping grounds for Claude's stream of consciousness, verbosely recording random bits of history and context that are true and at least somewhat relevant, but without cohesively explaining why the code is the way it is. And some sentences in the comments will be beginner-style restating what's obvious from reading the code.


Replies

meowface • yesterday at 7:24 AM

Exactly. Comments are basically its scratchpad for whatever it wants. Ask it to change a number in a TOML config and it'll also add 2 new comment lines above it with some Claudeslop about it being changed and what that accomplishes, as a useless note to itself.

I now make sure to do a big decommenting pass before every PR.

➕ show 1 reply
sfjailbird • yesterday at 1:29 PM

Yes, comments might be my biggest gripe with CC due to what you said. 9 out of 10 of my revisions to Claude's work is deleting or rewriting comments. Such a silly thing for it to fail on.

(I do have detailed instructions for it on how to comment (or not) but it has not fixed this.)

Shadowmist • yesterday at 3:29 PM

You can only fit so many bits of watermarks in code... but comments on the other hand, the possibilities are endless!

theritik12ee1 • yesterday at 12:30 PM

[dead]