Someone really said "type safety is for cowards" and went absolutely feral with the casting. They're casting (T)(object)value like they're performing dark magic rituals in the dead of night. Why cast to object first? Why not just cast directly to T? Because chaos, that's why. It's like taking off your seatbelt before putting on a different seatbelt. The compiler is screaming, the runtime is crying, and whoever wrote this was probably running on pure caffeine and desperation. And then—THEN—they return (T)(object)v at the end, doing the EXACT same cursed double-cast again. This is what happens when you're too tired to remember that generics exist for a reason and you just want the red squiggly lines to go away by any means necessary.
Production Code At Two In The Morning
3 months ago
1,895,517 views
0 shares
csharp-memes, generics-memes, type-casting-memes, bad-code-memes, code-smell-memes | ProgrammerHumor.io
More Like This
Assembly Do It For You
1 year ago
381.6K views
0 shares
When You Are A Public Function But Only Friends Are Allowed To Touch Privates
2 months ago
18.6M views
0 shares
The Dad.h Header File We All Need
1 year ago
310.8K views
1 shares
The Best Resume If You Don't Want Anyone To Read It
1 year ago
693.6K views
1 shares
Warnings Are Not My Problem
3 months ago
92.8M views
0 shares
Elgato XLR Dock – For Stream Deck +, XLR-to-USB Mic Interface, Customizable Audio Mixer, 75 dB Gain/Phantom Power/Clipguard – Mac/PC, Stream Deck Not Included (Renewed)
Affiliate
Tech Gadgets
Elgato
There's Definitely Should Be An Easier Way For This
1 month ago
122.0M views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++