Logo
If debugging removes bugs, programming adds them.
  • 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
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

Early-boot Memes

Posts tagged with Early-boot

Actual Code In The Linux Kernel

Linux Programming
22 days ago 272.1K views 1 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.

Today's picks

It's AI Fault

It's AI Fault

Programming
1.9M views 6 days ago
Don’t worry, we take backups regularly… I think.

Don’t worry, we take backups regularly… I think.

Programming
62.6K views 3 years ago
Programming on a laptop feels like this

Programming on a laptop feels like this

Programming
70.9K views 3 years ago