title: How to check for equals? (0 == i) or (i == 0)
body: <p>Okay, we know that the following two lines are equivalent - </p>
  
  <ol>
  <li><code>(0 == i)</code></li>
  <li><code>(i == 0)</code></li>
  </ol>
  
  <p>Also, the first method was encouraged in the past because that would have allowed the compiler to give an error message if you accidentally used '=' instead of '=='.</p>
  
  <p>My question is - in today's generation of pretty slick IDE's and intelligent compilers, do you still recommend the first method?  </p>
  
  <p>In particular, this question popped into my mind when I saw the following code - </p>
  
  <pre><code>if(DialogResult.OK == MessageBox.Show("Message")) ... 
  </code></pre>
  
  <p>In my opinion, I would never recommend the above. Any second opinions?</p>