title: What is the proper way to format code?
body: <p>When I write code, I try to group lines of similar code together, then leave a blank line and write another block.</p>
  
  <p>I believe this contributes to the neatness and readability of the code.</p>
  
  <p>I'm not a big fan of bunching stuff together without any line spacing.  It looks like hell, it's hard to read and it's difficult to follow.</p>
  
  <p>One of the teachers I had, downgraded one of my assignments because I had spaced my code logically.  He said, 'When you have to read code all day in the real world, you won't put this line spacing in and you'll be thanking me."  Of course, I never did and never will thank him.</p>
  
  <p>Now that I'm in the real world, most of the code files I see that have absolutely no line spacing are poorly written and poorly thought out.</p>
  
  <p>This is probably more prevelant in VB type languages than in C type languages, but the same concept applies.</p>
  
  <p>Two questions come to mind:</p>
  
  <ul>
  <li>Where do you leave a blank line in your code?</li>
  <li>How much line spacing is too much?</li>
  </ul>