Menu
COBOL: Powering your bank since before you were born.
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
556.6K 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
352.6K 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
319.1K 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
338.4K 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
330.8K 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.
Synology DS225+ 2-Bay Diskstation NAS (Intel Celeron J4125 Quad-Core, 2 GB Non-ECC DDR4 SODIMM 1 x 2,5 GbE und 1 x 1 GbE RJ-45 LAN-Port) 8TB Bundle with 2X 4TB Seagate Ironwolf
Affiliate
Home Lab
Synology
Now compatible with third-party drives since DSM 7.3 · Comes with 2 GB DDR4 non-ECC SODIMM memory, expandable up to 6 GB (2 GB + 4 GB) · Supports Synology Hybrid RAID (SHR) for flexible storage manag…
Today's picks
monTEK Single Monitor Arm with USB for 17-40 Inch Screens, Up to 24.3lbs, Heavy Duty Monitor Mount with VESA Mount, Full Motion Adjustment Monitor Stand C-Clamp/Grommet Base,MA1010UCBK
Affiliate
$74.99
We all know what that date actually means
Programming
89.4K views
3 years ago
NordVPN
Sponsored
VPN