Logo
There are 10 types of people in this world. Those who understand binary and those who don't.
  • 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

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

Magic numbers Memes

Posts tagged with Magic numbers

Some Actual Code I Found Inside A Game

Python Programming Debugging Testing Gamedev
24 days ago 116.3K views 3 shares
Some Actual Code I Found Inside A Game
The code is a perfect example of why game developers shouldn't be allowed near RNGs unsupervised! ๐Ÿ˜‚ What we're looking at is a glorious mess of Python where someone created two nearly identical functions ( count_greater_than_11 and count_greater_than_5 ) that generate random numbers between 1-20 and increment a counter when the number exceeds a threshold. But wait! The function names and comments don't even match - one says "greater than 11" in the comment but checks for > 10 in the code, while the other claims to check for > 5 but actually checks for > 4! And then there's that lonely is_divisible_by_7 function at the bottom, just hanging out with no apparent connection to anything else. It's like someone started implementing their own version of RNG bias with specific magic numbers, got bored halfway through, and shipped it anyway. This is probably why that boss battle feels unfairly difficult every 7th attempt...

Spotlight

ScienceHumor.io

Introducing ScienceHumor.io - where Newton's laws meet comedy! A collection of scientifically proven funny memes that react faster than sodium in water. Visit โ†’

Ad The Docker Beast

Run Docker containers without melting your desk
ASUS ROG Strix Gaming Laptop | ProgrammerHumor.io
Your purchase contributes to our 'Explain Docker to Management Without Using Ship Analogies' fund. ๐Ÿณ