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

Nested-ternary Memes

Posts tagged with Nested-ternary

Please Stop Using Nested Ternary Operators I'm Begging You

Programming Javascript Debugging AI Typescript
2 months ago 47.6M views 0 shares
Please Stop Using Nested Ternary Operators I'm Begging You
Nothing says "I hate my coworkers" quite like nesting 20 ternary operators deep. You're sitting there doing code review, squinting at the screen like Tony Stark trying to decode alien technology, except instead of saving the universe you're just trying to figure out if this function returns true, false, or summons a demon. And of course the commits are cosigned by Claude. Because naturally, when you ask an AI to write "clean code," it interprets that as "make it technically work but emotionally devastating." Junior devs and AI assistants share one beautiful trait: they both discovered ternary operators exist and decided to make it everyone else's problem. Pro tip: if your ternary needs a scroll bar, it's not clever—it's a cry for help. Just use an if statement like a normal person. Your future self will thank you.

Today's picks

Where's The Love

Where's The Love

Programming
149.4M views 7 days ago
Defabee 12pcs Soldering Station, 2 in 1 Hot Air Functions Digital Display Soldering Iron Soldering Kit, 8898 Portable SMD Rework Station, ºC/ºF Cool/Hot Air Conversion and Auto Sleep

Defabee 12pcs Soldering Station, 2 in 1 Hot Air Functions Digital Display Soldering Iron Soldering Kit, 8898 Portable SMD Rework Station, ºC/ºF Cool/Hot Air Conversion and Auto Sleep

Affiliate
$29.59
NordVPN

NordVPN

Sponsored
VPN