Logo
Talk is cheap. Show me the code.
  • 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

Odd even Memes

Posts tagged with Odd even

This Works In Theory

Algorithms Math Programming Debugging
1 year ago 360.5K 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 257.0K 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

TAVR Dual Monitor Stand Riser Office Desktop Organizer Stand for 2 Monitors, Adjustable Length and Angle 3 Shelf, Extra Long Multifunctional Stand up to 43.3" fit Computer, Laptop, TV, Black

TAVR Dual Monitor Stand Riser Office Desktop Organizer Stand for 2 Monitors, Adjustable Length and Angle 3 Shelf, Extra Long Multifunctional Stand up to 43.3" fit Computer, Laptop, TV, Black

Affiliate
$36.99
This Happened Twice In The Span Of Aa Week

This Happened Twice In The Span Of Aa Week

Programming
65.9K views 1 year ago
GearScouts.com

GearScouts.com

Sponsored
Power stations