Logo
Talk is cheap. Show me the code.
  • 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

Null-hell Memes

Posts tagged with Null-hell

The Most Passive Aggressive Type I Ever Encountered

Typescript Javascript Programming Webdev Frontend
7 hours ago 33.7K views 0 shares
The Most Passive Aggressive Type I Ever Encountered
Someone created a Maybe<Partial<T>> type. Let that sink in. It's a type that says "here's your data, but also maybe not, and if it exists, it might only have some of the properties, and those properties? Yeah, they could be null too." It's the programming equivalent of responding to every question with "I don't know, maybe, who's to say really?" Even the TypeScript compiler threw its hands up and said "just write JavaScript at this point." When your type system is so permissive that it's functionally identical to having no types at all, you've come full circle. It's like buying a lock for your door that opens with any key, including no key. The real tragedy? Someone thought this was a good idea and shipped it to production. Somewhere, a junior dev is trying to debug why their object is undefined, null, partially defined, or all three simultaneously.

Today's picks

Windows User And Linux User

Windows User And Linux User

Linux
121.1M views 16 days ago
Please Just Pass An Argument

Please Just Pass An Argument

Programming
100.9K views 1 year ago
The Lifecycle Of A Windows OS

The Lifecycle Of A Windows OS

Windows
199.8M views 2 months ago