title: How should I initialize jQuery?
body: <p>I have seen this (I'm also using it):</p>
  
  <pre><code>$(document).ready(function(){
     // do jQuery
  })
  </code></pre>
  
  <p>and also this (I have tried lately):</p>
  
  <pre><code>(function(){
     // do jQuery
  })(jQuery)
  </code></pre>
  
  <p>both work fine.</p>
  
  <p>What is the difference of the two (except on how it looks)?</p>
  
  <p>Which one is more proper to use?</p>