Logo
Life is short, use Python.
  • 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

Nested-ifs Memes

Posts tagged with Nested-ifs

Both Sides Need Refactoring

Programming Javascript Debugging Python
5 months ago 1.4M 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

Where's The Love

Where's The Love

Programming
149.4M views 6 days ago
Ask me a programming question and I’ll tell you it’s a duplicate question.

Ask me a programming question and I’ll tell you it’s a duplicate question.

Programming
135.3K views 4 years ago
Mother Nature's Version Control

Mother Nature's Version Control

Git
386.9K views 1 year ago