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.
Actual Code In The Linux Kernel
1 month ago
298,248 views
1 shares
linux-memes, kernel-memes, wtf-code-memes, code-review-memes, ascii-memes | ProgrammerHumor.io
More Like This
Terminal In Real Life
1 year ago
418.6K views
0 shares
I'm getting second thoughts about whether accepting this job was a good idea.
2 years ago
380.6K views
1 shares
Don't Touch The Sacred Servers
9 months ago
355.0K views
0 shares
The Magic Word
6 months ago
471.0K views
0 shares
Ring Zero Or Nothing
2 years ago
63.3K views
0 shares
How Everyone Here Will Be In A Few Weeks
3 months ago
456.5K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++