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

Even numbers Memes

Posts tagged with Even numbers

The World's Most "Optimized" IsEven Function

Algorithms Programming Debugging Gamedev Testing
9 months ago 391.6K views 1 shares
The World's Most "Optimized" IsEven Function
OH. MY. GOD. Someone actually wrote a function to check if a number is even by hard-coding EVERY. SINGLE. CASE. 💀 The sheer AUDACITY of creating an "IsEven" function that could be solved with a simple "return number % 2 == 0" but instead choosing violence and writing 500 if-statements! The poor soul reviewing this code is having an existential crisis right there on stream! This is the kind of "optimization" that gets you both fired AND hired at Blizzard in the same day. Pure chaotic evil genius!

Its A Lot Faster

Algorithms Programming Math C++ Java
1 year ago 417.2K views 0 shares
Its A Lot Faster
Ah, the classic bitwise vs modulo showdown. Left guy uses (num%2) == 0 to check if a number is even - the textbook approach they teach you in CS101. Right guy with the sunglasses? He's using (num&1) == 0 - the bitwise AND operation that's marginally faster because it works directly with the bits. Same result, but the bitwise operation skips the division calculation. It's the programming equivalent of bringing a switchblade to a butter knife fight. Technically more efficient, practically irrelevant for most applications, but absolutely essential for establishing your dominance in code reviews.

Today's picks

AI Vs Legacy

AI Vs Legacy

Programming
567.3K views 28 days ago
Govivo Office Decor - Computer Science Art - Set of 4 Geek Wall Art - Fun Gift For ICT Teacher, Student, Coding Nerd, Computer Programmer, Dad - 8x10 unframed print

Govivo Office Decor - Computer Science Art - Set of 4 Geek Wall Art - Fun Gift For ICT Teacher, Student, Coding Nerd, Computer Programmer, Dad - 8x10 unframed print

Affiliate
$16.97
Real Gentlemen Drink Javascript Coffee And Genuinely Pure Tea

Real Gentlemen Drink Javascript Coffee And Genuinely Pure Tea

Javascript
117.1K views 1 year ago