Logo
Code never lies, comments sometimes do.
  • 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

Boolean-operators Memes

Posts tagged with Boolean-operators

Short Circuit Evaluation

Programming Java Javascript Python Algorithms
8 hours ago 314.2K views 0 shares
Short Circuit Evaluation
When you upgrade from basic Halloween logic to enterprise-level conditional execution. The top panel shows the casual "treat or trick" approach—simple, readable, something your product manager might understand. But then we suit up with treat||trick() , where the compiler's like "already got the treat? Cool, not even gonna bother calling that trick() function." Short-circuit evaluation means the second operand only gets evaluated if the first one doesn't seal the deal. It's lazy evaluation at its finest—why do more work when you can do less? Your CPU thanks you, your function calls thank you, and that potentially expensive trick() function that might've queried a database or summoned a demon? Yeah, it's just chilling, never executed. Efficiency dressed in a tuxedo.

Today's picks

Panvola I'm A Developer To Save Time Let's Assume I'm Right Mug 11oz White | Computer Programmer Gifts STEM Gift Ceramic Mug Novelty Drinkware

Panvola I'm A Developer To Save Time Let's Assume I'm Right Mug 11oz White | Computer Programmer Gifts STEM Gift Ceramic Mug Novelty Drinkware

Affiliate
$9.97
At least they stopped fighting about inheritance.

At least they stopped fighting about inheritance.

Programming
157.6K views 4 years ago
Down In The Comments

Down In The Comments

Programming
102.2K views 2 years ago