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
25 days ago
274,907 views
1 shares
linux-memes, kernel-memes, wtf-code-memes, code-review-memes, ascii-memes | ProgrammerHumor.io
More Like This
The OS Freedom Spectrum
7 months ago
320.8K views
0 shares
My classifier would be the end of humanity.
4 years ago
158.2K views
0 shares
Well, it works doesn’t it…
2 years ago
57.9K views
0 shares
Help me Stack Overflow funny DevOps programmer programming T-Shirt
Affiliate
Apparel
Dumbassman
I Don't Need The Help
12 months ago
335.5K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp