Logo
Konami Code: The original cheat code.
  • 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

Else-statement Memes

Posts tagged with Else-statement

Enough About The If, Let's Discuss Where Is It That You Put The Else

Programming Javascript C++ Java Csharp
1 month ago 70.2M views 1 shares
Enough About The If, Let's Discuss Where Is It That You Put The Else
Oh, so you thought the great tabs vs spaces debate was intense? Welcome to the real battlefield: brace placement for else statements! Four different developers, four completely different approaches to where the "else" keyword should live in relation to its curly braces. Top left says "closing brace, else, opening brace all on separate lines" like some kind of vertical spacing enthusiast. Top right is giving "same line energy" with the else snuggled between braces. Bottom left puts the else BEFORE the opening brace like a rebel without a cause. And bottom right? That developer woke up and chose chaos by putting else AFTER the closing brace on its own line. The beauty here is that literally ALL of these will compile (in most languages), but your team's code review will turn into a gladiator arena over which one is "correct." Spoiler alert: there is no correct answer, only strongly held opinions and passive-aggressive comments in pull requests.

Today's picks

Cherry MX 3.0S Wireless, Mechanical Gaming Keyboard, Bluetooth, 2.4 GHz & Wired Mode, RGB Lighting, Aluminum Housing, Rechargeable, MX RED Switches, White

Cherry MX 3.0S Wireless, Mechanical Gaming Keyboard, Bluetooth, 2.4 GHz & Wired Mode, RGB Lighting, Aluminum Housing, Rechargeable, MX RED Switches, White

Affiliate
$49.99
NordVPN

NordVPN

Sponsored
VPN
The 1080 Ti Really Was Nvidia's Greatest Mistake

The 1080 Ti Really Was Nvidia's Greatest Mistake

Hardware
504.2K views 7 months ago