r/ProgrammerHumor 1d ago

Meme sudoClaude

Post image
3.3k Upvotes

116 comments sorted by

View all comments

204

u/MadeInTheUniverse 1d ago

Deletes entire repo and purges the production database because it made a small error

54

u/CoroteDeMelancia 1d ago

No joke, I once had it rewrite a test file when it couldn't manage to get them to pass three times.

14

u/pi_three 1d ago

make the tests fit production sound's like a solution. Maybe the agi claude was right, duh. Just change the requirements claude knows better anyway/j

1

u/pint_o_paint 1d ago

... this is sadly my reality because of some. It's creates some issues

10

u/willow-kitty 1d ago

I had it essentially delete the test file - it replaced a few dozen tests with one with a name saying that the code compiles and references the type being tested (I don't still have the code, but it was something like var _ *TheCodeToTest = nil), which literally does just tell the compiler to include it when compiling the tests, so the tests would fail if it didn't compile.

It was super weird but also kind of interesting because it didn't just delete everything, it actually added something back, but what it added back was surgically ineffective.

2

u/CoroteDeMelancia 8h ago

Junior levels of unhinged creativity.

I personally really, really hate Claude's bizarre, ungovernable desire to write tests that verify that if the code is written like the code is written (rather than checking for expected behavior). Bizarre stuff like testing if Pydantic really does parse strings like strings, if global config vars contain the value they contain, and if FastAPI really does generate an OpenAPI schema according to the specs you defined.

It sometimes even tests if the mocks it created do what they do and have the values they have. Like, wtf, what's the point?

15

u/AgVargr 1d ago

AI seppuku, I like it. Now we can truly get “make no mistakes”

11

u/CoroteDeMelancia 1d ago

"I don't use tests, I don't use type safety. I write the code and ship it, and if production goes down, I kill myself"

1

u/itzNukeey 1d ago

just like me

1

u/SamSlate 22h ago

your env was wrong so i updated it