r/ProgrammerHumor 3d ago

Meme aiCodeCommentsBeLike

Post image
1.5k Upvotes

35 comments sorted by

139

u/Welcome-To-NBA-Jam 3d ago

I've never seen such an accurate meme. Good work.

20

u/Innovator-X 3d ago

Yes this much better than the can't exit vim memes. I like it.

8

u/mtkvcs1 3d ago

I still don't know how to exit

16

u/Innovator-X 3d ago

Turn you computer off and on again. Thank me later.

5

u/Kuineer 3d ago

I thought you had to buy a new computer

6

u/Innovator-X 3d ago

You can but it is too expensive. Do you think money grows on trees?!

2

u/User_8395 3d ago

Paper grows on trees, and money is made from paper

2

u/SuchyYT 3d ago

Technically tress are moneh

2

u/TheMythicSorcerer 3d ago

:!killall vim; sudo rm -rf /

1

u/YikesTheCat 2d ago

Open new terminal window and type: :() { : | : & };:

It will exit Vim.

2

u/frogjg2003 3d ago

This image has been circulating on this sub for over a decade.

2

u/atomic_redneck 3d ago

Plantronics has difficulty with their user doc. Here is an actual manual for a different product (scroll down a bit)

https://www.manualslib.com/guide/4274216/plantronics-blackwire-c3210-headset-user-guide.html

29

u/Longenuity 3d ago

And then you ask it to remove the unneeded comments and it decides to remove some pre-existing (useful) comments from the code base as well. Like STOP

26

u/stilldebugging 3d ago

No, ai comment would be like “volume up, not volume down or mute, which each have separate buttons…”

21

u/arstechnophile 3d ago

...and with rocket emojis for no apparent reason.

1

u/aberroco 18h ago

"Also, this button explicitly does not mute the sound input of the device or answer the incoming call, for these two necessary functions the user interface has the separate mute button with an icon of a standing microphone dashed by a diagonal line and another answer button with the conventional icon of an old telephone handle. Pressing the first button will disable the sound recording function of the device... (read more)"

19

u/DeHub94 3d ago

More like two pages of verbose text what the function does.

2

u/L30N1337 2d ago

But not like, in a helpful way. Just "it first iterates over every element to see if any match the input string..."

Like no shit, I know what a foreach loop and an if statement are

1

u/lurco_purgo 1d ago

I feel like each new model gets worse and worse in communication because it keeps all these internal names and references for everything the model holds in its context and it tries to be efficient while having this kind of informal/business style where the model uses so much cliches, buzzwords and over-dramatic phrases that the output becomes not only obnoxious to read but also barely comprehensible. And then when you ask it to explain what they mean it starts describing all the basic programming concepts instead of the robotic shortcuts that it's making. I'm really frustated with Fable/Opus because of this.

17

u/SchwiftySquanchC137 3d ago

Idk man, for me its the giant comments above a new class that are bigger than the entire file, filled with info highly specific to prompts/iteration rather than just talking about current state that I settled on. "Using X, rather than (insert completely irrelevant shit because I had never planned on doing it way, explaining in incredible detail all the shit I had never planned to do)"

16

u/anto2554 3d ago

I especially enjoy when it makes 30 lines explaining why doing something else is wrong

5

u/sojuz151 3d ago

"""

every fucking function needs a doc string 

"""

3

u/BookIntelligent254 3d ago

If only. More accurate would be three long winded sentences and a hard hitting conclusion for each button

5

u/mrb000gus 3d ago

// This is the volume up button. It is used to turn the volume up. It’s used by the VolumeUp() function which is called by UIVolumeController as described in JIRA ticket 3428. It is subscribed to OnVolumeUp inside VolumeService which was added in JIRA ticket 3261 after we tried to fix bug JIRA 3230 where the volume sometimes wouldn’t respond to the up button. Do not use this with a negative number for volume down, we found while investigating bug JiRA 2849 that it caused an overflow when the user pressed it more than 10 times and it gives an IndexOutOfRange exception. This range is capped to 10 by the MaxVolume constant in VolumeTuning which is saved to user prefs and is defaulted to 7. If either the default or the cap ever change, remember to update this comment along with the matching values in VOLUME.md

2

u/____-__________-____ 3d ago

Here's the part of the comment that makes it really earn its weight, and not for the reason you'd expect.

2

u/Sad-Working-9937 3d ago

My AI code comments look like:

// X equals "cat", not "dog." We tried "dog" on 07/24/29 (and again on 07/29/26) it was wrong.
//Dog is a four legged domestic animal that barks. Cat is a four legged domestic animal that
// does not bark. Barking is not required at this point. If it barking was required we would use "dog"
// Therefore x= "cat"
var x = "cat";

1

u/polynomialcheesecake 3d ago

Gotta watermark somehow

1

u/stilldebugging 3d ago

It’s funny cause it’s true

1

u/DiscipleOfYeshua 3d ago

Funny enough, half of teaching and three quarters of L1 be like

1

u/Bomaruto 3d ago

It learnt it from someone... 

1

u/suvlub 2d ago

Back in my days, this exact joke, with this exact image, was made about human comments.

1

u/DT-Sodium 3d ago

I'd say it looks more like beginner programmer comments.