if (null != variable)
If this was C, it should be NULL, and it is almost always better to just write `if (variable)` to check for NULL pointers instead.If this was JavaScript, this check includes undefined too. Not sure why it didn't use triple equal.
If this was just talking about placing a constant value to be compared before a more complicated expression, I really don't see a convincing argument for either. Does switching the order reduce the cognitive load that much?