All Questions
7 questions
0
votes
3
answers
391
views
If callback function, promises and async/await patterns all can be used to achieve asynchronous behaviour then why don't we stick to one?
As far as I have seen then async/await, callbacks and promises are and can only be used to achieve asynchronous programming. Correct?
So my questions are:
1) Is it correct that the former three is ...
6
votes
1
answer
616
views
Node.js deployment -- npm or gulp
Suppose that I have a project written in JS via such frameworks like Node.js and Express. It also uses Mocha as a test framework and Gulp as a build system.
I wonder what is the best way to expose ...
0
votes
1
answer
315
views
Confusion over Node as a "script" vs Node as a "server"
As I was beginning to tool around a bit with node, I was told that I needed to undergo a little bit of a paradigm shift since I was coming from a PHP background. I would ask questions like, "I have my ...
-1
votes
1
answer
334
views
I'm building an app with Node, Express, and MongoDB. Is AngularJS necessary?
Node, Express, and MongoDB are really connected so I can understand why they are frequently used together. For a web app of medium complexity, can I get away with only using HTML/CSS and EJS for the ...
0
votes
1
answer
281
views
Understanding streams
I have started learning streaming APIs and I found one of the good documentations here. There was a comparison given by author to demonstrate the effectiveness of the streams.
var http = require('...
5
votes
5
answers
488
views
What does it mean for software, libraries, and languages to be asynchronous?
With popular software out today like Node.js, Celery, Twisted, and others boasting about being asynchronous, what does it mean?
I've gone through the basic Node.js tutorials and written a few Node....
1
vote
0
answers
77
views
designing better and crisp server.js (the file which is called to start node application 'e.g. node server.js')
While creating server.js file we need to provide routes information as
var Login = require('./routes/login.js');
app.use('/login', Login);
Now, suppose the node project is a REST services project. ...