Logo
Code is poetry with syntax errors.
  • 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 429.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 302.1K 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

WALI Computer Monitor Stand for Desk, Adjustable Laptop Riser, up to 44 lbs

WALI Computer Monitor Stand for Desk, Adjustable Laptop Riser, up to 44 lbs

Affiliate
$9.99
Mobile Developers Will Understand

Mobile Developers Will Understand

Debugging
164.3K views 2 years ago
Creating test cases

Creating test cases

Programming
198.6K views 5 years ago