Logo
Original Google servers: Made with Legos.
  • 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

Even numbers Memes

Posts tagged with Even numbers

The World's Most "Optimized" IsEven Function

Algorithms Programming Debugging Gamedev Testing
1 year ago 538.4K 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 539.5K 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

Attoe Gaming Mouse with 5 D Rocker, Wireless Vertical Mouse with [24000 DPI] [12 Programmable Buttons], Computer Mouse for Gamer/PC/E-Sports/Laptop (Black)

Attoe Gaming Mouse with 5 D Rocker, Wireless Vertical Mouse with [24000 DPI] [12 Programmable Buttons], Computer Mouse for Gamer/PC/E-Sports/Laptop (Black)

Affiliate
$35.99
NordVPN

NordVPN

Sponsored
VPN
There are 3 types of changelogs

There are 3 types of changelogs

Java
63.1K views 2 years ago