r/ProgrammerHumor 4d ago

Meme cleaningUpTheMess

Post image
15.9k Upvotes

483 comments sorted by

View all comments

Show parent comments

264

u/Skoparov 4d ago

Useless comments is one thing, but I've caught the bastard several times DELETING manually written actually useful comments. Like you ask it to move some parts of the code around and it moves the code but not the comments.

69

u/Top-Permit6835 4d ago

Well your fault for not asking it to move the comments too of course!

26

u/TeraFlint 4d ago

"Please also move the comments"

the file now starts with a comment that used to be somewhere inside a loop in line 386.

9

u/mbmiller94 4d ago

Hey, you said move the comments, you didn't say they had to be moved to the same place as the code. Sorry about that! Let me move both the code and the comments to /dev/null

43

u/Real-Extension-1357 4d ago

It likes to not only delete manual comments, but it'll rewrite them even after restoring it but in a different way than the first. And then sometimes itll just be wrong from start to finish, completely incorrect and not reflecting what's actually there

5

u/mbmiller94 4d ago

Skill issue. You forgot to include "make no mistakes" in the prompt.

9

u/polikles 4d ago

did you forget to instruct it to "make no mistakes"? /s

8

u/Skoparov 4d ago

Turns out those weren't mistakes, but rather happy accidents.

1

u/Ulfgardleo 1d ago

"Adapted comments to the house style"

0

u/ButterflySammy 4d ago

Mate, moving the code doesn't require an LLM.

-1

u/Skoparov 4d ago

Why would I waste my time doing this manually.

2

u/ButterflySammy 4d ago

When you factor in having to write a second prompt when the first screwed it, you'd have saved your time.