Re:Show HN: I've asked Claude to improve codebase quality 20...
by minimaxir on Thursday December 11, 2025 @11:51AM
(#46233778)
Claude is very good at unfun-but-necessary coding tasks such as writing docstrings and type hints, which is a prominent instance of "laundry and dishes" for a dev.
[ Parent
| on HN ]
Re:Show HN: I've asked Claude to improve codebase quality 20...
by loloquwowndueo on Thursday December 11, 2025 @12:22PM
(#46234224)
“Sorry, the autogenerated api documentation was wrong because the ai hallucinated the docstring”
Re:Show HN: I've asked Claude to improve codebase quality 20...
by theshrike79 on Thursday December 11, 2025 @03:50PM
(#46236961)
You can't read?
Please don't say you commit AI-generated stuff without checking it first?
Re:Show HN: I've asked Claude to improve codebase quality 20...
by loloquwowndueo on Friday December 12, 2025 @05:25PM
(#46249763)
I don’t commit ai-generated stuff. Do you?
Re:Show HN: I've asked Claude to improve codebase quality 20...
by theshrike79 on Tuesday December 16, 2025 @01:46AM
(#46285529)
Of course, but not without review.
It’s exactly like working with another human. PR review is there for a purpose.
Re:Show HN: I've asked Claude to improve codebase quality 20...
by mrguyorama on Thursday December 11, 2025 @12:48PM
(#46234594)
>writing docstrings and type hints
Disagree. Claude makes the same garbage worthless comments as a Freshman CS student. Things like:
// Frobbing the bazz
res = util.frob(bazz);
Or
// If bif is True here then blorg
if (bif){ blorg; }
Like wow, so insightful
And it will ceaselessly try to auto complete your comments with utter nonsense that is mostly grammatically correct.
The most success I have had is using claude to help with Spring Boot annotations and config processing (Because documentation is just not direct enough IMO) and to rubber duck debug with, where claude just barely edges out the rubber duck.
Re:Show HN: I've asked Claude to improve codebase quality 20...
by minimaxir on Thursday December 11, 2025 @12:51PM
(#46234634)
I intentionally said docstrings instead of comments. Comments by default can be verbose on agents but a line in the AGENTS.md does indeed wrangle modern agents to only comment on high signal code blocks that are not tautological.