Menu
Regular expressions: Now you have two problems.
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
Ranking-system Memes
Posts tagged with Ranking-system
When Zero-Indexing Meets The Real World
Programming
Debugging
Frontend
Gamedev
1 year ago
443.0K views
0 shares
Ah, the classic "array starts at 0" bug manifesting in the wild. Some poor dev clearly implemented the ranking system with proper zero-indexing, but forgot that humans count from 1. Now we've got this beautiful disaster where 0th place pays more than 1st place, and the gold medal goes to... whatever the hell "0th" is. The best part? The prize money actually makes sense if you shift everything up one position. This is what happens when you let backend engineers design UI without supervision. Ten bucks says there's a comment in the code that reads "TODO: fix this later" from 2019.
Today's picks
Keychron Q3 Ultra Wireless Mechanical Keyboard 8000 HZ Polling Rate, 80% TKL 2.4 GHz/Bluetooth 5.3/Wired Hot-Swappable Aluminum Custom RGB Gaming ZMK for Mac/Windows/Linux-Black
Affiliate
$229.99
NordVPN
Sponsored
VPN
Wait, That's My Line...
Debugging
291.2K views
1 year ago