Logo
CTRL+C, CTRL+V: The real programming heroes.
  • 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

Nested-ifs Memes

Posts tagged with Nested-ifs

Both Sides Need Refactoring

Programming Javascript Debugging Python
2 hours ago 170.8K views 0 shares
Both Sides Need Refactoring
The code shows a beautiful pyramid of doom checking if someone is a member of r/ProgrammerHumor, with conditions like isBanned , hasSocialLife , hasTouchedGrass , hatesJavaScript , and bulliesPythonForBeingSlow . Five levels deep. Chef's kiss of terrible nesting. The programmer looks at it and weeps because they can't parse the logic through all those braces. Meanwhile, the Reddit user is casually ignoring the code entirely, scrolling through a 571-reply flame war about whether tabs or spaces are superior, or if Python is "real programming." Both are suffering, just in different ways. One drowns in conditional hell, the other in endless internet arguments. The real joke? Neither will actually refactor anything. They'll just complain about it.

Today's picks

Genuinely Can't With These People

Genuinely Can't With These People

Cloud
2.2M views 4 days ago
Percentage of this working?

Percentage of this working?

Databases
56.2K views 2 years ago
Hanoi in O(2^n - 1)

Hanoi in O(2^n - 1)

Programming
72.4K views 3 years ago