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
-
Brolls31557y@ilbreebchi because it’s a logical and, the index isn’t < 1024 **and** > 1024 at the same time, it’s a logical contradiction. So it’s always false.
Resharper would probably flag it as such. -
holycrap7027yWell, I've seen someone trying to prank his fellow devs by using the same condition just with <= and >= to obfuscate a simple ==.
Embarassing how long it took me to realize.. Still facepalming when I remember that -
enoon4317y@pacohojaverde C#?
P.S. - if it is, I could tell from its resemblance to Java syntax but its application of UpperCamelCase to everything.
Edit: just noticed the “*.cs” in the console to the right. 😂
Found this in a API from a big company. NDA prevent me from telling the name.
if(index < 1024 && index > 1024)
rant