Logo
CAPTCHA: Computers Asking People To Confirm Humanity Again
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • 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

If true Memes

Posts tagged with If true

The Unreachable Code Jedi Mind Trick

Java Debugging Programming Testing
1 year ago 239.2K views 0 shares
The Unreachable Code Jedi Mind Trick
The oldest trick in the developer handbook: wrapping problematic code in an if (true) block with a return statement instead of properly commenting it out. Top panel: Java compiler screaming "unreachable statement" because those Star Wars lightsaber sound effects will never execute after the return . Bottom panel: The developer feeling smug after "fixing" the issue by wrapping the return in an if (true) block, tricking the compiler into thinking those ridiculous sound effects might actually run someday. Nine years of software engineering experience and we're still pulling stunts like this instead of using version control like adults.

Terrible Auth: The Digital Doorman Who Always Says Yes

Security C++ Programming Debugging Testing
1 year ago 350.7K views 0 shares
Terrible Auth: The Digital Doorman Who Always Says Yes
The first part of this authentication function is actually doing its job—checking if the password matches. But then comes the security masterpiece: if (true == true) . Congratulations, you've created the digital equivalent of a bouncer who checks your ID and then lets you in anyway because "yep, gravity still works!" This function will authenticate literally anyone who gets past the first check... or fails it and just keeps trying. Security experts hate this one weird trick!

Today's picks

Too Real

Too Real

Programming
7.6M views 3 days ago
GearScouts.com

GearScouts.com

Sponsored
Power stations
DUMOS 40 Inch Electric Standing Desk Height Adjustable, Sit to Stand Up Computer Workstations Work PC Table Home Office Study Writing Gaming Desks with Memory Presets for Walking Pad, Bedroom, Rustic

DUMOS 40 Inch Electric Standing Desk Height Adjustable, Sit to Stand Up Computer Workstations Work PC Table Home Office Study Writing Gaming Desks with Memory Presets for Walking Pad, Bedroom, Rustic

Affiliate
$65.97