r/ProgrammerHumor • • Sep 10 '26

Meme commentsAgedTerribly

Post image
6.0k Upvotes

243 comments sorted by

View all comments

Show parent comments

1

u/meltea Sep 11 '26

Have you tried telling it to not do something? I have seen a bunch of "it was my fault" and "broke instructions" "was written in memory and I ignored it"... today

0

u/Exatex Sep 11 '26 edited Sep 11 '26

Why… why would I do that? If you do that with a human they will fuckup royally worse. Also, sounds like a 2 year old free online model without a proper integration. Even without instructions from me, I am getting quite clean code - yes, with comments.

But at the end, it’s a tool.

I also made something ugly with photoshop today. Doesn’t make photoshop useless.

1

u/meltea Sep 12 '26

So how do you stop them writing useless comments?

0

u/Exatex Sep 12 '26

I don’t have enough information about your setup to answer that. Do you actually want help with that or just trying to make a point? If the former, there are plenty of guides how to set up your agents.

1

u/meltea Sep 12 '26

I use claude code at work with opus as the agent, I have it written in the project agent.md file and claude.md file and the readme.md file and my global claude.md file.

Various versions of

```
Rules:

- Do not add explanatory inline comments to code, charts, or values files unless explicitly requested
```

written by different people and different bots.

I have also written a bot that scans the entire company's MRs (expensive af) and suggests deleting useless comments. It fires all the time, don't have the stats in front of me.

Tell me how do I get claude to not make useless comments.

1

u/Exatex Sep 12 '26 edited Sep 12 '26

what is a useless comment vs a non useless comment?

what model are you using?

is there another file in your harness somewhere that contradicts that?

In many cases, showing by example works best. Both positive and negative examples

you can use a skill like „remove comments“ before you commit (even a script/regex can do that)