Menu
HTTP 429: Too Many Requests (Take a hint).
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
Pre-decrement Memes
Posts tagged with Pre-decrement
Pre Decrement Fixes The Exploit
Security
Java
Programming
Debugging
Csharp
2 months ago
203.6M views
0 shares
When you're dealing with a critical security vulnerability and someone suggests using pre-decrement (--i) instead of post-decrement (i--) as the "fix," you're basically asking a genie to reduce your problem count to zero... and getting exactly what you asked for. The joke here is that the programmer wants to make their problem count "0" (meaning no problems), but the genie interprets this literally and just sets their wish count to 0 instead. It's like changing i-- to --i in your code and calling it a security patch when you've fundamentally changed nothing about the actual vulnerability. You've just shifted when the decrement happens—before or after the expression evaluation—but the exploit is still there, laughing at your PR. Classic "technically correct but completely useless" energy that every code reviewer has seen at 3 AM.
Today's picks
Handover
Programming
172.4M views
2 days ago
The FAANG Salary Delusion
Programming
330.0K views
1 year ago
This sub
Programming
87.5K views
5 years ago