Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Or, just throwing this out there, he was <i>really</i> concerned about a number that is somehow simultaneously less than 2 but greater than 3...
-
Maybe it's a multi threaded environment, and the ArgsBuilder thread keeps changing the shared argsList counter.
Related Rants
Today at work I found this in the code...
if (argCount < 2 && argCount > 3) {
// log invalid arg count
return;
}
And this passed code inspection and has been sitting there unnoticed for about a year and a half... 😂
Whether it's mixing up and with or, or forgetting a semicolon, we've all done it at some point! 😊
undefined
smh
silly mistakes