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
22 days ago
271,966 views
1 shares
linux-memes, kernel-memes, wtf-code-memes, code-review-memes, ascii-memes | ProgrammerHumor.io
More Like This
Todo App Vs Git
1 month ago
341.6K views
0 shares
Wanna Delete Your Bootloader? Sure, Go Ahead, It's Your PC
1 year ago
290.7K views
0 shares
Patience
4 years ago
155.8K views
0 shares
Different types of Linux user
1 year ago
135.0K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp