title: Is there any basic rules of indenting any code
body: <p>This may seem a very trivial question but I would really like to have an answer:</p>
  <p>I always seem to indent my code in the following fashion:</p>
  <pre><code>if (&lt;condition&gt;)
  {
       &lt;some code&gt;
  }
  </code></pre>
  <p>That is, I place my braces in a fashion that makes the code appear within a block. However, as I come across other programmers and even professional code on major websites and my workplace, I observe this:</p>
  <pre><code>if (&lt;condition&gt;) {
       &lt;some code&gt;
  }
  </code></pre>
  <p>Is there any significant difference in the two styles of indentation or is it just a matter of choice? This is my personal opinion that the latter format seems a little messier. Can anyone shed some light on this?</p>