Logo
Sleep is for the weak. And for while loops.
  • 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

Heat-death Memes

Posts tagged with Heat-death

The Universe Is Done Bro Im Crine

Python Programming Debugging Algorithms Math
2 months ago 55.4M views 0 shares
The Universe Is Done Bro Im Crine
Someone wrote a loop that's supposed to run 10^100 times (a googol, literally more iterations than atoms in the observable universe), but there's a fatal flaw: if randint(0,1) returns 0, it resets i back to 0. So you've got a 50/50 chance every iteration of going back to square one. The heat death of the universe will arrive before this loop finishes. Your descendants 10 billion years from now will still be sitting there watching i bounce between 0 and maybe 47 if they're lucky. The print statement is pure poetry though—passive-aggressively asking why you're still at your computer when the universe itself has given up. Truly a masterpiece of accidental infinite loops disguised as ambition.

Today's picks

You Push All My Buttons - Funny Ceramic Coffe Mug or Tea Cup

You Push All My Buttons - Funny Ceramic Coffe Mug or Tea Cup

Affiliate
$19.99
Note to self

Note to self

StackOverflow
234.4K views 5 years ago
NordVPN

NordVPN

Sponsored
VPN