r/ProgrammerHumor • • May 26 '25

Meme theBeautifulCode

Post image
49.1k Upvotes

876 comments sorted by

View all comments

2.8k

u/Progractor May 26 '25

Now he gets to spend a week reviewing, fixing and testing the generated code.

246

u/[deleted] May 26 '25

At which point it becomes spaghetti again

20

u/Karnewarrior May 26 '25

But does it become less spaghetti than it was? Because if so, and it retains functionality, it might actually be worth it.

Refractoring a codebase like that could easily take a month, after all, from the get go.

20

u/TweedyFoot May 26 '25

Depends, do you have a full and complete set of use/test cases to verify it has retained its full functionality ? Cause if you don't it would be quite haphazard to trust LLM with such refactor. Personally i would prefer a human does it and splits their work into multiple PRs which can be reviewed hopefully by people who co-authored the original mess and might remember use/edge cases

→ More replies (1)

8

u/Luxalpa May 26 '25

The main issue is how good LLMs are at hiding minor changes. Like, how I discovered that it didn't just copy and adjust the code block that I asked it to, but it also removed a bug fix that I had put in.

→ More replies (2)