Logo
The first computer mouse had only one button.
  • 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 448.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 317.5K 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

Employee Vs Freelancer Vs Founder Vs Vibe Coder

Employee Vs Freelancer Vs Founder Vs Vibe Coder

Programming
291.2M views 26 days ago
AULA F99 Wireless Mechanical Keyboard,Tri-Mode BT5.0/2.4GHz/USB-C Hot Swappable Custom Keyboard,Pre-lubed Linear Switches,RGB Backlit Computer Gaming Keyboards for PC/Tablet/PS/Xbox

AULA F99 Wireless Mechanical Keyboard,Tri-Mode BT5.0/2.4GHz/USB-C Hot Swappable Custom Keyboard,Pre-lubed Linear Switches,RGB Backlit Computer Gaming Keyboards for PC/Tablet/PS/Xbox

Affiliate
$68.99
NordVPN

NordVPN

Sponsored
VPN