title: Why combine http module with express module
body: <p>Hello guys i'm new to node js and started researching and working on some tutorials. I just want a better understanding or clarification on a doubt i had. So i came across the in built module <code>http</code>. This helps in creating a a basic web server. Now <code>express</code> module is a web framework that is built on top the <code>http module</code> that makes it easy using a fully wedged web server without reinventing the wheel. Now I came across this code:</p>
  
  <pre><code>var express = require( 'express' )
  , http = require("http")
  http.createServer( options, function(req,res)
  {
    app.handle( req, res );
   } ).listen(8080);
  </code></pre>
  
  <p>But in express one could simply just do this</p>
  
  <pre><code> var express = require('express');
   var app = express();
   app.listen(8080, function() {
    console.log('Listening on ' + 8080);});
  </code></pre>
  
  <p>What's the difference between both? Don't they both accomplish the same thing. If not what's the difference and advantage of using the first approach. Should one adhere to the first approach as it's a good programming practice. That's my doubt as i just want a clear understanding if there's any difference. </p>