Comment Re:"if (0 != variable)" is for wimps (Score 1) 1422
I tortured myself for years by witting (666==x) and it never became natural. I suppose the counter argument is that when (x==666) slips out my fingers I immediately notice it. Whereas (x=6) is easy to miss. afaik, every compiler warns about it now, so yeah, it is better to devote your brain to more important things.
0==strcmp is not bad though. Anytime a small thing and a big thing are related to each other it is good to have the small thing first. It saves time when mentally parsing it. Same with 'if' statements. If one of the blocks is just a couple lines and the other is huge, the small one should be the 'then'.