Logo
One missing comma can ruin your whole day.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

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

Record-type Memes

Posts tagged with Record-type

Typescript More Like Typeslop

Typescript Javascript Frontend Webdev
1 month ago 99.2M views 0 shares
Typescript More Like Typeslop
The TypeScript type safety power hierarchy, visualized through Thor's hammer-lifting scene. At the top, we have no-explicit-any looking all confident with its strict ESLint rule – "You can't defeat me" – thinking it's protecting your codebase from type chaos. Then comes the humble any type itself, and yeah, it absolutely can defeat that rule. Just slap any on your variables and watch your type safety evaporate faster than your motivation on a Monday morning. But wait – enter the final boss: Record<string, unknown> with its unholy alliance partner & { weirdKey?: T } . This monstrosity technically bypasses the no-explicit-any rule while achieving the same "I have no idea what's in this object" energy. It's the loophole that makes TypeScript devs simultaneously feel clever and dirty. You're not using any , you're just using a type-safe way to say "literally anything could be here" – which is basically any with extra steps and a superiority complex.

Today's picks

Elgato Stream Deck +, Audio Mixer and Studio Controller

Elgato Stream Deck +, Audio Mixer and Studio Controller

Affiliate
$159.99
How does this combo even exist?

How does this combo even exist?

Programming
85.1K views 2 years ago
;Loop last one loop less if we start one loop early. So you have to Do While.

;Loop last one loop less if we start one loop early. So you have to Do While.

Linux
100.9K views 3 years ago