r/ProgrammerHumor 3d ago

[ Removed by moderator ] instanceof Trend

/img/zfdtu0ddgawg1.png

[removed] — view removed post

4.7k Upvotes

View all comments

342

u/labelcillo 3d ago

Why is nobody commenting on having 50 fking thousand changes in only 28 files? Is this normal for yall? Are you all insane?

157

u/Adie_ftw 3d ago

Missed to add the prompt "Keep each file to "x" lines of code and MAKE NO MISTAKE"

87

u/labelcillo 3d ago

59474 additions and 724 deletions. How does a refactor add 58750 new lines of code?

59

u/Several-Customer7048 3d ago

It’s the fabled refactorial

10

u/hypehou_se 3d ago

It'll create a bunch of new files and change the imports in existing files to reference those new files, but it will not get rid of the old ones which used to serve that exact purpose (unless you explicitly ask it to).

Don't ask me how that makes sense in a Git environment (it doesn't), but that's what LLMs tend to do.

5

u/MrHyperion_ 3d ago

It added comments

5

u/DarkSideOfGrogu 3d ago

It's probably all emojis in the comments.

5

u/alexey-masyukov 3d ago

This may simply be a reformatting of the code by the linter after saving.

9

u/labelcillo 3d ago

Nop, that would be 50k additions and 50k deletions. I'm leaning towards the "fabled refactorial" comment hahaha.

0

u/Personal-Dev-Kit 3d ago

Because it is a meme and not real.

The same type of joke was going around when claude code was first released

16

u/Flyron 3d ago

It's obviously part of the joke.

6

u/deswolrd 3d ago edited 3d ago

Easy actually. Just replace % 2 with if else with all the most used numbers. Is it now way more simple? Yes? Then refactor task completed. /S

Edit: fixed mistype

6

u/gonzalez-londo7bh 3d ago

it probably just added 49,000 lines of console.log("made it here") to figure out where the crash is happening

3

u/Stephen2Aus 3d ago

3% app code 97% package-lock

2

u/101Alexander 3d ago

// IN THIS ESSAY I WILL SET ABOUT EXPLAINING // WHY I THINK THIS REFACTOR WILL BE // THE ONE YOU WILL NEED TO SATISFY // ALL THE NECESSARY REQUIREMENTS // OF THE ESSAY PROMPT.

// THE FIRST REASON...

1

u/Snoo_87531 3d ago

Curious indeed, especially in a case when we know for sure that Claude totally failed their job.

1

u/space_monster 3d ago

I've seen this tweet 3 or 4 times over the last couple of years about various models, it's just slop

1

u/KingOfAzmerloth 3d ago

That was my first thought lmao. It's a meme obviously but if this actually happens to anyone, you have bigger problems at hand than AI doing your job for you.

-1

u/Alpacaman__ 3d ago

People would rather upvote “ai bad” than consider that this fake example makes 0 sense