Logo
Code is poetry written by poets who can't spell.
  • 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

Odd even Memes

Posts tagged with Odd even

This Works In Theory

Algorithms Math Programming Debugging
1 year ago 464.9K views 2 shares
This Works In Theory
The eternal struggle between theory and reality, illustrated with the elegance of a napkin sketch. What we have here is a linked list implementation of a number classifier that would make computer science professors proud and working developers cry. Sure, in theory, you can determine if a number is odd or even by traversing a linked list where each node points to its opposite classification. Start at "isEven" with 0, follow the pointer once for 1 to get "isOdd", twice for 2 to get back to "isEven"... mathematically sound! Meanwhile, in the real world, the rest of us are just using n % 2 == 0 like normal people and going home at 5pm instead of debugging infinite loops when someone inputs 18,446,744,073,709,551,615.

Hip Hip Array! The Amazing Loop

Python Programming
1 year ago 333.6K views 0 shares
Hip Hip Array! The Amazing Loop
Someone just wrote a Python loop that prints "hip hip" and "hooray" alternately and called it "amazing." That's the coding equivalent of discovering fire in 2023. The code increments a counter and checks if it's odd or even - printing "hip hip" for odd numbers and "hooray" for even ones. The real kicker? The variable 'n' isn't even initialized before they start adding to it. Absolute madlad behavior. Seven years of coding experience and I'm still waiting for my "amazing" badge for writing a basic if-else statement.

Today's picks

Weller Soldering Education Kit | 8 piece kit | WE1010EDU

Weller Soldering Education Kit | 8 piece kit | WE1010EDU

Affiliate
$238.25
Don't know if it has been made before but here:

Don't know if it has been made before but here:

Programming
95.0K views 5 years ago
Well Shit

Well Shit

Databases
520.5K views 9 months ago