Re:Yoda Conditions
by alexeiz on Sunday February 19, 2017 @04:42PM
(#13682186)
Yoda conditions suck. You don't compare a constant to a value of a variable to make sure that the constant has a certain value. Such comparison is backwards. Unfortunately it is extremely popular at Microsoft among C++ programmers. They seem to totally lack any sense of style. Sometime in the nineties the enforcement of Hungarian notation throughout the company had a long lasting damaging effect on their psyche they still can't recover from after all these years.
[ Parent
| on HN ]
There are no comments on this comment yet.