Menu
Semicolons - Ending relationships since 1958.
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
4 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
Where's The Love
Programming
149.4M views
7 days ago
Lemorele USB-C KVM Switch for 2 USB-C DP Alt Mode Devices | 4K@60Hz HDMI, 100W PD Charge, 3×USB-A 2.0+1×USB-C 2.0 Data Ports, 3.5mm Audio Jack, Windows Mac Linux Android iOS Switch
Affiliate
$35.99
I'm all for arrays starting at 0, but seriously, stair steps?!
Programming
98.8K views
5 years ago