Logo
Edison used 'bug' before computers existed.
  • 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
4 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

FLEXISPOT EN1 One-Piece Standing Desk, Electric Adjustable with 4 Memory Presets, 176 LBS Capacity, Stable & Quiet, Seamless Desktop for Home Office & Dual Monitors, 48"x30" Black

FLEXISPOT EN1 One-Piece Standing Desk, Electric Adjustable with 4 Memory Presets, 176 LBS Capacity, Stable & Quiet, Seamless Desktop for Home Office & Dual Monitors, 48"x30" Black

Affiliate
$161.45
no disrespect to java

no disrespect to java

Programming
152.4K views 5 years ago
The Placebo Resolution Effect

The Placebo Resolution Effect

Hardware
424.1K views 1 year ago