title: Nested Callbacks with NodeJS & MySQL
body: <p>I have come to a time in my java-script adventure where I have needed to nest callbacks. I have the following code. I keep reading bout nested callbacks being hell... if someone could explain or help with the code. I am still very new to asynchronous programming. I am using <code>nodejs</code>, <code>express 3.0</code>, <code>jade</code>, <code>node-mysql</code></p>
  
  <pre><code>db_helper.getCategory(function (category) {
      db_helper.getCities(function (cities) {
               res.render('/search', category: category, cities: cities });
  
      });
  });
  </code></pre>
  
  <p>i apologize for not really asking. Im wondering if this is ok to do this? Whats a better way to handle nested callbacks?</p>