Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualMadhed

Posted 18 October 2012 - 11:52 AM

I also find this "yoda comparing" quite confusing (nice term, btw). Also, it won't protect you in the case where you are comparing two variables instead of a variable against a constant.

EDIT: I once worked on a codebase where, apparently for the sake of consistency, smaller than and greater than comparisons were switched as well... Posted Image

#1Madhed

Posted 18 October 2012 - 11:50 AM

I also find this "yoda comparing" quite confusing (nice term, btw). Also, it won't protect you in the case where you are comparing two variables instead of a variable against a constant.

PARTNERS