Menu
Never let a hardware engineer near your code.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Strict typing Memes
Posts tagged with Strict typing
True Crime: Type Safety Edition
Typescript
Javascript
Programming
Debugging
Frontend
1 year ago
588.4K views
0 shares
The real criminal here is declaring a variable that can be both boolean and null . That's like giving your function three possible states of existence when two would suffice! The triple equals comparison cascade is just the accomplice to this type-safety felony. TypeScript developers are screaming internally right now. The proper way? An enum or a proper nullable boolean with explicit handling. This code is basically begging for a runtime exception to break into your production environment at 2 AM.
Please Be The First Guy While Using TypeScript
Typescript
Javascript
Programming
Debugging
Webdev
1 year ago
374.2K views
0 shares
The duality of TypeScript developers in their natural habitat: Top panel: The type-safety zealot who clutches their pearls at the mere sight of any . "ANY TYPE?? In MY interface definition?? How QUEER!! I shall report this abomination to management immediately!" Bottom panel: The pragmatist who's just trying to ship code before the deadline. "I guess we doin' JavaScript now" *casually drops blue ball of type-safety on the floor* The red triangles represent the bugs waiting to strike either way. Choose your fighter.
The Dramatic Birth Of TypeScript
Typescript
Javascript
Frontend
Webdev
Programming
1 year ago
341.2K views
0 shares
Oh. My. God. The TRAUMA of JavaScript's type coercion bringing a grown developer to tears! 😭 The absolute HORROR of "10"-1 = 9 because JavaScript just decides strings with numbers should be numbers when it feels like it! The AUDACITY! And then TypeScript swoops in like the helicopter parent we never knew we needed, wrapping us in a warm blanket of strict typing and whispering "there, there, I won't let the bad implicit conversions hurt you anymore." DRAMATIC RESCUE COMPLETE! 💅
The TypeScript Knight's Fatal Weakness
Typescript
Javascript
Programming
Debugging
Testing
1 year ago
359.3K views
1 shares
The knight was ready for battle with his mighty sword of TypeScript code, prepared to slay dragons with strict typing and interfaces... until an arrow labeled "as any" pierced right through his helmet. That type assertion just bypassed all his carefully crafted armor of type safety! Nothing defeats a noble TypeScript warrior faster than a teammate who decides type checking is more of a suggestion than a rule.
The Type Safety Shortcut
Typescript
Javascript
Programming
Debugging
1 year ago
350.5K views
0 shares
When TypeScript sees an untyped variable, it throws a fit like your strict high school teacher. But the second you slap type:any on it? Suddenly TS is your best friend who "doesn't see a problem here." It's the programming equivalent of telling your compiler "just trust me bro" while silently sacrificing all the type safety you installed TypeScript for in the first place. The digital walk of shame every developer knows but won't admit to doing.
Today's picks
Lenovo ThinkPad T14 Business AI Laptop, 14" HD+ IPS,Intel Core Ultra 7 155U
Affiliate
$2499.00
It Will Replace You Not Me
AI
515.1K views
1 year ago
Decimals
Programming
101.8K views
5 years ago