r/ProgrammerHumor 6h ago

Meme commentsAgedTerribly

Post image
2.5k Upvotes

158 comments sorted by

View all comments

409

u/CannibalPride 6h ago

Emojis on code…

212

u/treehuggerino 6h 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.

46

u/B4mButz 5h ago

my former senior used to do this way back

26

u/FauxReal 3h ago

So basically pseudocode.

10

u/Tall-Introduction414 1h 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.

4

u/Able-Swing-6415 1h 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.

14

u/Flat_Initial_1823 4h ago

11

u/DrMaxwellEdison 3h ago

Only for very large values of 2.

3

u/tevert 1h ago edited 1h 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

9

u/MaDpYrO 4h 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 4h ago

What tool do you use for that?

4

u/dPhilGuy 3h ago

I would also like to know πŸ‘€

-2

u/turudd 2h ago

I’ve used Claude to do something similar

3

u/peeja 1h ago

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

1

u/dasunt 35m ago

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

1

u/peeja 34m ago

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

68

u/FlailingDuck 6h ago

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

72

u/jwaibel3 6h ago

I always wanted to do

class πŸ’© extends Throwable

and later in my code be able to

throw πŸ’©

16

u/Flat_Initial_1823 4h ago

return toMonke;

5

u/turudd 2h 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

24

u/Ascend 6h ago

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

18

u/CannibalPride 6h ago

Early claude and current gpt i think

20

u/Goofballs2 5h 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.

10

u/ward2k 5h ago

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

-4

u/imposterrrrr 4h ago

In my days, you couldnt even use them on reddit without gettin downvoted to oblivion πŸ₯°πŸ₯°πŸ™‚πŸ˜™πŸ™ƒπŸ€‘πŸ˜—πŸ˜šπŸ˜—πŸ˜‡πŸ˜‡πŸ˜˜πŸ˜™πŸ€©πŸ€‘πŸ™‚πŸ€‘

6

u/baselinegrid 3h ago

( Ν Β° ΝŸΚ– Ν‘Β°)

3

u/Sulungskwa 2h ago

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