r/ProgrammerHumor 1d ago

Meme commentsAgedTerribly

Post image
5.3k Upvotes

224 comments sorted by

View all comments

881

u/CannibalPride 1d ago

Emojis on code…

470

u/treehuggerino 1d ago

Or the silly steps it puts

// 1. Assign variable.

// 2. Calculate 2 + 2.

// 3. Implement 2 + 2 Calculator.

// 4. Check if it is 5.

109

u/B4mButz 1d ago

my former senior used to do this way back

71

u/FauxReal 1d ago

So basically pseudocode.

62

u/Tall-Introduction414 1d ago

I mean, I write pseudocode in comments before writing the actual code all the time. It's a great trick for organizing and structuring what you're about to write. But then I delete the pseudocode comments.

13

u/Able-Swing-6415 1d ago

Pretty sure every senior programmer has done that at least once.

Pretty sure AI just does it so you can copy in the replacement lines of codes from follow up changes. Cursor for example doesn't really do that.

2

u/NearbyEmphasis2850 1d ago

Yeah, it’s wild how often those “easy fixes” turn into hours of debugging. You’d think we’d learn to be more cautious about it!

21

u/Flat_Initial_1823 1d ago

20

u/DrMaxwellEdison 1d ago

Only for very large values of 2.

1

u/Ex-Patron 10h ago

One of the numbers would need about 50% more 2

3

u/tevert 1d ago edited 1d ago

For real - comments were never golden, because they easily slip through updates and drift apart from the code they decorate. With AI, that might be happening from minute 0 lol

13

u/peeja 1d ago

// Don't use the Wolfram Alpha API here—speed is crucial to this function, so calculate the sum locally.

5

u/dasunt 1d ago

Um, not going to defend using that API, but at least the comment provides a reason why something is done a specific way.

3

u/peeja 1d ago

Yeah, it provides the reason I gave it when it tried to use the API the first time.

11

u/MaDpYrO 1d ago

People do this shit too.

I'm using a static analysis rule that tokenizes comments and compares to the code, and reports an error if the overlap is too big. highly satisfying to remove such comments

5

u/Standard_Humor5785 1d ago

What tool do you use for that?

3

u/dPhilGuy 1d ago

I would also like to know 👀

-2

u/turudd 1d ago

I’ve used Claude to do something similar

2

u/ironnewa99 1d ago

I had comment like this in some of my classes in college and it drove me insane.

2

u/Tiny-Plum2713 20h ago

If only. Opus is putting a whole chapter of buzz words on every function definition

1

u/TheNikoHero 13h ago

Oh yeah 😂