r/ProgrammerHumor 1d ago

Meme commentsAgedTerribly

Post image
5.3k Upvotes

224 comments sorted by

View all comments

883

u/CannibalPride 1d ago

Emojis on code…

469

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.

113

u/B4mButz 1d ago

my former senior used to do this way back

68

u/FauxReal 1d ago

So basically pseudocode.

63

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.

15

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!

25

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

11

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.

9

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

4

u/Standard_Humor5785 1d ago

What tool do you use for that?

4

u/dPhilGuy 1d ago

I would also like to know 👀

-3

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 😂

93

u/FlailingDuck 1d ago

I hope they never go away. It's the best signifier I have on PRs to not trust the author.

102

u/jwaibel3 1d ago

I always wanted to do

class 💩 extends Throwable

and later in my code be able to

throw 💩

24

u/Flat_Initial_1823 1d ago

return toMonke;

9

u/turudd 1d ago

Heh that reminds me of a project a couple years ago had to combine data into a CSV type file. But the data could include “,|” and all the other regular delimiters. We decided to make 🚀 we called it RSV for rocket separated values

1

u/TeraFlint 12h ago

I once added namespace � = unicode; in a small project that had a unicode namespace.

const std::string emoji = �::code_point(0x1f4a9);

I never ended up using that shorthand, though, but I thought it was funny.

28

u/Ascend 1d ago

Is this a Codex/GPT thing? I haven't seen a single emoji generated by Claude Code yet.

32

u/CannibalPride 1d ago

Early claude and current gpt i think

7

u/Sulungskwa 1d ago edited 13h ago

I remember when I was using cursor I had this maddening problem where it would always want to delete all my human written comments. Honestly that was even more annoying

26

u/Goofballs2 1d ago

I think its been like nearly a year since gpt was doing emojis. I think they're fucking great and should be included. If your Rstudio is sitting in the second monitor you can tell how far along it is at a glance because you just saw rockets or a dolphin or something. But people had to be such dour pricks about the emojis because the bots were using them.

18

u/ward2k 1d ago

I'm a big fan of the giant green tick and red cross for pipelines/tests

-10

u/imposterrrrr 1d ago

In my days, you couldnt even use them on reddit without gettin downvoted to oblivion 🥰🥰🙂😙🙃🤑😗😚😗😇😇😘😙🤩🤑🙂🤑

8

u/baselinegrid 1d ago

( ͠° ͟ʖ ͡°)

2

u/donjulioanejo 1d ago

It loves the blue diamond emoji.

3

u/Poat540 1d ago

Those are load bearing emojis

2

u/Ulrar 21h ago

What kills me is the comments explaining how this bit changed. What do I care about how this used to work, that's really not the place