Logo
How many programmers does it take to change a light bulb? None, that's a hardware problem.
  • 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

Close-enough Memes

Posts tagged with Close-enough

Actual Code In The Linux Kernel

Linux Programming
2 days ago 224.8K views 0 shares
Actual Code In The Linux Kernel
Someone actually committed a function called myisspace() to the Linux kernel that checks if a character is a space by comparing it to... the letter 'j'. And the comment? "Close enough approximation." In a codebase that powers billions of devices worldwide, where every line is scrutinized by some of the most brilliant engineers on the planet, someone decided that 'j' is basically a space character. The ASCII value of 'j' is 106, while space is 32. That's not even close! But hey, it's for a "simple command-line parser for early boot" so I guess standards are optional when your OS is still rubbing the sleep out of its eyes. The beauty here is imagining the code review: "Yeah, just use 'j' instead of ' ' (space). Ship it." This is either galaxy-brain optimization or someone's Friday afternoon commit that somehow made it through. Either way, it's living rent-free in one of the most important codebases in computing history.

Spotlight

GearScouts.com

Stop scrolling, start exploring! Find the gear that'll get you off the couch and into the wild. Compare power stations for off-grid adventures, flashlights for midnight hikes, and essentials that make the outdoors your playground. Get Outside →

wo-we P6 AMD Ryzen 5 3550H Gaming Mini PC (Beat...

wo-we P6 AMD Ryzen 5 3550H Gaming Mini PC (Beat...
Ad Buy = You get a shiny new toy + we keep the server hamsters fed. Everyone wins! 🐹