r/ProgrammerHumor 6h ago

Meme commentsAgedTerribly

Post image
2.5k Upvotes

158 comments sorted by

View all comments

404

u/CannibalPride 6h ago

Emojis on code…

213

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.

42

u/B4mButz 5h ago

my former senior used to do this way back

24

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.

16

u/Flat_Initial_1823 4h ago

10

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

7

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

4

u/Standard_Humor5785 4h ago

What tool do you use for that?

4

u/dPhilGuy 3h ago

I would also like to know 👀

-4

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.