Logo
The first YouTube video: 'Me at the zoo'.
  • 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

Ternary Memes

Posts tagged with Ternary

The Ternary Operator Fever Dream

Javascript Webdev Programming Debugging Frontend
2 months ago 110.9K views 1 shares
The Ternary Operator Fever Dream
This code is what happens when someone discovers nested ternary operators and thinks they've unlocked godmode. The developer is trying to add the correct suffix to a date (1st, 2nd, 3rd, etc.) with a chain of ternaries that would make even Satan say "that's a bit excessive." The best part? It completely ignores 4-20, 24-30, and anything else ending with those numbers. Enjoy debugging this masterpiece when it breaks on the 4th of literally any month! Future maintainers will be adding this developer to their prayer lists tonight.

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 →

Across-Star Dual-Monitor-Stand-Riser-For-Desk A...

Across-Star Dual-Monitor-Stand-Riser-For-Desk A...
Ad Your purchase helps maintain our 99.9% uptime. The other 0.1% is when we're updating npm. ⏱️