Logo
Edison used 'bug' before computers existed.
  • 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

Logic operators Memes

Posts tagged with Logic operators

Boolean Humor Is Never False

Programming Javascript Debugging Java Python
1 year ago 376.2K views 0 shares
Boolean Humor Is Never False
The ultimate programmer paradox: !false evaluates to true , but the statement "it's funny because it's true" is itself a boolean expression that's both logically sound and a meta-joke. Seven years into debugging other people's code and I still chuckle at these elementary boolean puns while questioning my life choices. The real joke is that we spend hours hunting down logic errors caused by a single misplaced exclamation mark.

To Bit Or Not To Bit

Programming Algorithms C++
1 year ago 312.5K views 0 shares
To Bit Or Not To Bit
Ah, the classic programmer double entendre. What we're looking at is [2b | !2b] followed by "That is the expression." It's Shakespeare's famous "to be or not to be" dilemma rewritten as a bitwise OR operation. The "2b" is hexadecimal (base 16) for 43 in decimal, and the exclamation mark represents logical NOT. So you're literally performing a bitwise OR between "to be" and "not to be" in code. The punchline is the perfect deadpan delivery: "That is the expression." Because, well, it literally is an expression in programming terms. Whoever came up with this probably felt extremely clever while their coworkers groaned audibly.

Today's picks

MOUNTUP Dual Monitor Stand for Desk, Monitor Arms for 2 Monitors 32 27 24 22 Inches, Height Adjustable Double Monitor Mount, VESA Mount with C-Clamp & Grommet Base, Holds 4.4-17.6lbs

MOUNTUP Dual Monitor Stand for Desk, Monitor Arms for 2 Monitors 32 27 24 22 Inches, Height Adjustable Double Monitor Mount, VESA Mount with C-Clamp & Grommet Base, Holds 4.4-17.6lbs

Affiliate
$32.97
Priorities

Priorities

Programming
80.8K views 4 years ago
Clever Tricks

Clever Tricks

Python
494.0K views 1 year ago