Particularly on this line of code:
I'm kinda new on node.js and most of the tutorials that I've seen initialize the server by
var http = require('http');
var express = require('express');
app = express();
//omit
http.createServer(app).listen(1337)
wherein, if you're already using express
then you can just do :
var express = require('express');
var app = express();
// omit
app.listen(1337,function(){
});
Are there any major difference between those two code structures?