Casting Memes

Posts tagged with Casting

Anime Gender Type Theory

Anime Gender Type Theory
Someone took their TypeScript generics knowledge and applied it to the most important problem in computer science: categorizing anime characters by gender presentation. Because nothing says "I understand covariance and contravariance" quite like explaining why that cute anime character might be a trap. The progression is beautiful: simple generic Girl, then a Variant that could be Boy OR Girl (Schrödinger's waifu), then a Boy that implements the IGirl interface (the classic "looks like a girl, sounds like a girl, but surprise"), and finally void—because some things transcend mortal understanding. The BitCast at the end is the cherry on top: when type safety fails you, just reinterpret those bits and pray. Your type system can't save you now.

This Post Was Made By The Javascript Gang

This Post Was Made By The Javascript Gang
JavaScript throwing shade at Python's type system is peak language rivalry. Python's like "I'll just figure out the types at runtime, no biggie" while JavaScript—the king of undefined is not a function —has the audacity to mock someone else's type safety. Meanwhile, both languages are out here turning perfectly good integers into strings when you least expect it. The irony of JavaScript bragging about "dynamic typing" while silently casting everything is chef's kiss material. It's like watching two drunks argue about who's more sober.