Logo
Documentation is like true love - it exists only in fairy tales.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • 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

Boolean algebra Memes

Posts tagged with Boolean algebra

Thanks For Inventing JavaScript

Javascript Webdev Programming Debugging Frontend
3 days ago 161.5K views 0 shares
Thanks For Inventing JavaScript
JavaScript's type coercion is like that friend who tries to help but makes everything worse. Look at this beautiful chaos: typeof NaN returns " number " because obviously not-a-number is totally a number! Loose equality says true==1 but strict equality says true===1 is false. Make up your mind! Floating point? 0.5+0.1==0.6 is true but 0.1+0.2==0.3 is false. IEEE 754 strikes again! Math.max() with no arguments gives -Infinity while Math.min() gives Infinity . Peak logic. The masterpiece: (1+[]+[]+![]) has length 9 because it converts to "1" + "" + "" + "false" = "1false" And my personal favorite: true+true+true===3 is actually true because JavaScript converts booleans to numbers for addition! No wonder the creator is smirking. He unleashed this beautiful monster on us and now we're all stuck with it. And we can't even escape because the entire web runs on it!

Spotlight

GearScouts.com

Stop scrolling, start exploring! Find the gear that'll get you off the couch and into the wild. Compare power stations for off-grid adventures, flashlights for midnight hikes, and essentials that make the outdoors your playground. Get Outside →

Beelink SER5 Mini Pc,AMD Ryzen 7 5825U PRO(8C/1...

Beelink SER5 Mini Pc,AMD Ryzen 7 5825U PRO(8C/1...
Ad When you shop, we're closer to understanding why it works in dev but not in staging. 🤔