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
-
Eariel19068yWhen I see this kind of code I always wonder if there once was some other logic inside the if and else blocks. It could be domain stuff that changed, or simply logs for debugging that wasn't cleaned up enough.
-
Usually it's done to put a breakpoint in the else clause usually when it's inside a loop and a conditional breakpoint is too slow. It shouldn't be committed but stuff happens.
Related Rants
This useful codes...
undefined
coder
if
code
idiots
if else
programmer
funny
programming