32
dayo
8y

Love reading through old code and seeing things like this

var hasFailed = (errors.length > 0)?true:false;

Makes you wonder what their thought process was when writing it :D

Comments
  • 4
    They should stop smoking whatever they were smoking 😂
  • 0
    YES! Thats the way it works... 😂
  • 0
    What's wrong about that line?
  • 0
    They are setting a Boolean variable to true if it's true and false if it's false, just a lot of unnecessary code
  • 0
    Oh indeed. Sorry, it's late here in Germany...
Add Comment