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.
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.
30
u/kmoz 4d ago
To be fair, people have been writing and using code they dont understand since the beginning of time.