Aren't they both the same?
More or less. Usually the constant portion of a conditional statement is placed on the right side. Yoda conditions reverse this typical order. This should avoid certain errors. Yet, their use is controversial.
Same ofcourse but they are in place to avoid those million dollar bug NASA scientists creates years ago
Wow really, didn't know about that million dollar bug! Maybe I will convert to start using them :D :D
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Aren't they both the same?
More or less. Usually the constant portion of a conditional statement is placed on the right side. Yoda conditions reverse this typical order. This should avoid certain errors. Yet, their use is controversial.
Same ofcourse but they are in place to avoid those million dollar bug NASA scientists creates years ago
Wow really, didn't know about that million dollar bug! Maybe I will convert to start using them :D :D