So I have found my newest, “omg why would you do this” piece of code. The code in question is:
"value" == $variable;
//instead of the traditional
$variable == "value";

The reason given for writing it this way…. because if you accidentally forget to type the second =’s sign it will not cause the variable to set, it will just not set the variable.

WTF

So code backwards to allow you to screw up code? Honestly, check your code you lazy people. When I see this in my current employers code, I change it. When the other developers question me on why I change it, of course I go off on a rant about stupidity, and I was actually told by one, that they would leave it and just conform.

Developers of the world…. please do not conform, and if you decide to conform, do not conform to stupidity. Code like this makes me cry at night when I am trying to sleep.