Logo
Documentation: A love letter to your future self.
  • 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

Language ambiguity Memes

Posts tagged with Language ambiguity

Boolean Logic

Programming Debugging Algorithms Math
1 year ago 404.8K views 0 shares
Boolean Logic
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

VASAGLE Standing Desk, 55x28 Inch Electric Adjustable Desk, 30-Min Assembly | Home Office Computer Desk, Gaming Desk with Sedentary Reminder and 4 Memory, Sit Stand Desk for Study, Writing ULSD315BZ02SV1

VASAGLE Standing Desk, 55x28 Inch Electric Adjustable Desk, 30-Min Assembly | Home Office Computer Desk, Gaming Desk with Sedentary Reminder and 4 Memory, Sit Stand Desk for Study, Writing ULSD315BZ02SV1

Affiliate
$105.52
NordVPN

NordVPN

Sponsored
VPN
The Unholy Alliance Of GPU Manufacturers

The Unholy Alliance Of GPU Manufacturers

Hardware
199.9K views 1 year ago