Logo
Tabs vs Spaces: The eternal holy war.
  • 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

Weird-logic Memes

Posts tagged with Weird-logic

But.. (From Minecraft B 1.2_02)

Java Programming Gamedev
3 months ago 1.7M views 0 shares
But.. (From Minecraft B 1.2_02)
So you're telling me you check if something is NOT eating, and if that's true, you print "Eating... But..."? That's some galaxy brain logic right there. The real kicker is what comes after—setting hasNormal to true and then doing some sketchy byte casting with bit shifts. Nothing says "stable codebase" like multiplying floats by magic numbers (128.0F, 127.0F, 82.0F) and shoving them into bytes with wild type casting. Classic early Minecraft code. Notch was out here speed-running game development with the kind of code that makes you go "it works, don't touch it" for the next decade. The variable names are doing absolutely zero favors too—xx, yy, zz? We're converting coordinates here but the logic feels like it was written at 3 AM fueled by energy drinks and pure chaos.

Today's picks

Employee Vs Freelancer Vs Founder Vs Vibe Coder

Employee Vs Freelancer Vs Founder Vs Vibe Coder

Programming
291.2M views 25 days ago
Corsair Vanguard PRO 96 Wired Hall Effect Magnetic Mechanical Gaming Keyboard – 96% Layout, MGX Hyperdrive Switches, 8000Hz Polling, Rapid Trigger, Virtual Stream Deck, SOCD Flashtap, QWERTY US

Corsair Vanguard PRO 96 Wired Hall Effect Magnetic Mechanical Gaming Keyboard – 96% Layout, MGX Hyperdrive Switches, 8000Hz Polling, Rapid Trigger, Virtual Stream Deck, SOCD Flashtap, QWERTY US

Affiliate
$189.99
When your computer seems slower without reason

When your computer seems slower without reason

Programming
130.7K views 4 years ago