r/ProgrammerHumor • • Oct 20 '26 • Bravo 1

Meme claudeWasNotHere

Post image
18k Upvotes

230 comments sorted by

View all comments

Show parent comment

959

u/WingZeroCoder Oct 20 '26 edited Oct 20 '26

/** Depth first, recursive with an early return as the caller expects a single result. That’s the real payload. Fails loudly with an exception for the caller to handle, as per guidelines. **/

Bro chill, it’s just boilerplate code that’s looking for file within a folder structure.

209

u/[deleted] Oct 20 '26 edited Oct 20 '26

Can you share your wisdom?

From my experience ChatGPT never leaves any comments and always LGTM all code reviews (i.e., it doesn't find anything useful).

Claude leaves many code comments, and 99% of the time they are either explaining the line below like it's your first ever lecture in programming and you have no idea what assigning a variable does... or it goes full poetic and dumps a paragraph describing some piece of code that no longer exists that prompted it to write the commented piece of code. And during code review it dumps a huge list of 100 false positives where almost all of them are wrong, irrelevant or just nitpicks.

288

u/whowatchestv Oct 20 '26 • Bravo

You’re absolutely right, I overreached and that’s my bad. Updating agent_notes.md to flag this misstep.

56

u/CeralEnt Oct 21 '26

That mistake was real, not imagined.

66

u/blagoonga123 Oct 20 '26

When asdf calls fghghwgads it does ablabla and ablabla will then tickle its balls until asdfoijsdofij

i've noticed ai also overindexes on codeblocks way too much. any readability benefits become detriments.

53

u/[deleted] Oct 20 '26 edited Oct 20 '26

Works best in Java codebases:

When AbstractFactoryInsuranceBeanInstanciator:43 calls createNewInstanceOfBeanInstanciatorClass:751 it uses StaticSingletonInstanciatorCache:52 which src/main/java/com/hobbits/feature/subfeature/ablabla:562 will then tickle.java:666 its balls.class:153 until com.hobbits.feature.common.infrastructure.synchronizer.AbstractOpenInstanciatiorSynchronizerImpl:71 syncrhonizes the beans.

My coleagues throw such slop as "code change requests" at me daily during code reviews.

→ More replies (1)

5

u/Aethenosity Oct 21 '26

Nothing quite like a nice asdfoijsdofij in the morning...

2

u/eyetracker Oct 21 '26

Everybody to the limit!

30

u/genreprank Oct 20 '26

Ask it to make comments concise.

56

u/spasmwaiter Oct 20 '26

Oh I ask it, and I have it established in my rules for every project, yet I find myself having to remind the little documentation whore every time it writes a function

14

u/Meloetta Oct 20 '26

It used to be me...I used to be my company's little documentation whore...AI really is taking our jobs

12

u/CarcajouIS Oct 20 '26

Use a precommit hook that flags comments longer than 2 lines

23

u/DerangedEscapee Oct 20 '26

Direct instructions on length often don't produce what you want. The model has to know what to include and what not to include in its output, and told to trim for length, it may choose poorly.

I found it helpful to establish a SKILL for code comments with directives on what makes a good comment, with examples. It still over indexes on those examples sometimes, but it's still better than a small poem in free verse about API endpoints.

13

u/ThyLastPenguin Oct 20 '26

"oops, that went against your specific directive to not leave long comments. I shouldn't have done that"

EVERY TIME

7

u/archiekane Oct 20 '26

I've asked mine for dark, British sarcasm. It's improved my code comments no end. I actually enjoy reviewing it now.

6

u/[deleted] Oct 20 '26

The primary issue is I can't ask half my company to tell their Calude to be concise.

The secondary issue is that I use one common setup and switch between models based on my needs. I rarely need/use Claude, so I won't change my setup that works for every single model just to please Calude... which may then still ignore it.

5

u/Inevitable-Menu2998 Oct 20 '26

You can share contexts across your company

3

u/almightyfoon Oct 20 '26

also most agents will read a CLAUDE/GEMINI/AGENT.md file, they don't always respect it, but they do read it,

6

u/Inevitable-Menu2998 Oct 20 '26

"Oh, yes, you're right and that's my fault. I ignored your rules. Let me rewrite all the comments"

dude no!!! stop!!! fuck

3

u/dyslexda Oct 20 '26

I've spent a significant amount of effort trying to get it to make comments more like I do (concise, rarely more than one line, if just rewording a function name don't do it, and my own style of no space after the comment character and starting with lower case) and it'll follow it...a bit. It's one thing I hate about constantly retuning models, every time a new minor iteration comes out it'll change how it comments and I have to get creative bringing it back to earth.

→ More replies (1)

2

u/LaNague Oct 20 '26

i use the comments as a flag wether i reviewed the section properly or not yet. If there is a poem on top of the function, i still have to look at it.

78

u/MrMacduggan Oct 20 '26

This is a Grok comment for sure

18

u/cantadmittoposting Oct 20 '26

I was going to guess gemini.

22

u/bottleoftrash Oct 20 '26

Gemini will often number its comments

10

u/nameisprivate Oct 20 '26

comments like this make me want to remove my skin and burn it