Menu
COBOL: Powering your bank since before you were born.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
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
95-percent-accuracy Memes
Posts tagged with 95-percent-accuracy
Return False Works In Prod
Algorithms
Testing
Programming
Math
Debugging
7 months ago
410.1K views
1 shares
The most elegant solution to any coding problem: just return false. Who needs actual logic when you can achieve 95% accuracy by simply lying to every function call? The function literally doesn't even have a body—it's just "nope" and bounces. Technically correct is the best kind of correct, and if your stakeholders only care about that sweet 95% metric, why bother with the actual algorithm? Ship it. The beautiful irony here is that for checking prime numbers, returning false for everything actually IS a decent heuristic since most numbers aren't prime. It's like those security questions where "no" is statistically the right answer 90% of the time. Peak efficiency meets peak laziness.
Today's picks
Windows User And Linux User
Linux
121.2M views
20 days ago
NordVPN
Sponsored
VPN
UGREEN 20Gbps M.2 NVMe SATA SSD Enclosure Compatible with 10Gbps USB C External M.2 Enclosure USB 3.2 Gen2 Support UASP Trim for M/B+M Key NVMe and SATA SSD in Size of 2230/2242/2260/2280
Affiliate
$31.98