Menu
One missing comma can ruin your whole day.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
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
And vs or Memes
Posts tagged with And vs or
Boolean Logic
Programming
Algorithms
Debugging
Math
1 year ago
392.6K views
0 shares
Ah, the classic case of unintentional boolean logic in the wild! The sign says "We don't accept bills higher than 50 AND 100" which logically means they don't accept bills that are simultaneously higher than both 50 and 100. But since any bill higher than 100 is automatically higher than 50, this statement actually means "We don't accept bills higher than 100" - making the 50 completely redundant. Twenty years of coding and I still see this stuff everywhere. The number of times I've had to explain to product managers why "if user is premium AND has subscription" isn't what they actually meant... I've lost count. This is why we can't have nice things in production.
Today's picks
Employee Vs Freelancer Vs Founder Vs Vibe Coder
Programming
291.2M views
13 days ago
Do The Token Dance For Me
Backend
441.0K views
8 months ago
I Know HTML (How To Meet Ladies) T-shirt T-Shirt
Affiliate
$14.00