title: High level deferred/promise advice
body: <p>I have the following code that has the following structure:</p>
  
  <pre><code>doSomething '/', -&gt;
    waitForthis '#e', -&gt;
      waitForSomethingElse '#el', -&gt;
        #actually do it
  </code></pre>
  
  <p>If I wanted to use deferreds/promises to be something like this:</p>
  
  <pre><code>doSomething().then(waitForthis).then(waitForSomethingElse);
  </code></pre>
  
  <p>Where would I create the deferred and would each then return a promise?</p>
  
  <p>I am just looking for some rough advice to get me started.</p>
  
  <p>I will probably use jquery deferreds for this.</p>