Suppose you are comparing value with some variable
if ( i == 2) //Bad-way
{
doSomething;
}
Now suppose you have mistaken == with =. Then it will take your sweet time to figure it out.
if( 2 == i) //Good-way
{
doSomething;
}
Then, if an equal sign is accidentally left out, the ...