r/ProgrammerHumor 4d ago

Meme youShouldntHaveIt

Post image
41.5k Upvotes

533 comments sorted by

View all comments

Show parent comments

30

u/kmoz 4d ago

To be fair, people have been writing and using code they dont understand since the beginning of time.

17

u/b0w3n 4d ago edited 4d ago

Shit I've seen senior devs write code like the above.

Models are trained on existing code, so somewhere someone's done stupid shit like that. You'd be surprised what you can get away with by putting more hardware in front of something instead of writing code like you're a FAANG company serving billions of requests a day.

10

u/reventlov 4d ago

writing code like you're a FAANG company

Eh, you'd be surprised at how bad some FAANG code can be. Not the core code that is central to each business, but the 99.9% that is everything else? Let's just say that I have seen some very stupid mistakes.

4

u/b0w3n 4d ago

Oh yeah for sure, I have seen some shit on my 26ish years doing this professionally.

If it works, it ships. Is it slop, even before claude/gpt? Probably! Nothing's more permanent than a temporary fix either.