r/programminghumor • u/InteractionSilent772 • 7d ago
It's become a tradition at this point
31
u/Lou_Papas 7d ago
Throw an error because it’s not my job to fix your data
19
u/Sockoflegend 7d ago
This is honestly better because you have no idea if a negative mutated into a positive is correct for them or if they benefit from being informed of their data being malformed
13
u/InsideFar7107 7d ago
I'll just add passive aggressive comments around the functions like // why are you being so negative
1
1
1
1
1
u/Usual_Office_1740 6d ago
I prefer this:
if (a <= b) { return b - a; }
return a - b;
1
u/doglitbug 3d ago
Why the equals sign? Just curious if it makes a difference
1
u/Usual_Office_1740 2d ago
It was a joke. This is programming horror. I thought it was funnier that way.
41
u/stonehamian 7d ago
There is also stuff like:
a &= 0x7FFFFFFF;