Skip to main content

All 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 ...
CodingManiac's user avatar
-1 votes
3 answers
325 views

Writing elegant promises in Node.js

I am having a real difficult time writing some clean code with a simple user registration/login manager. I am trying to stay out of nesting/callback hell, and am also not seeing any benefit in using ...
jozenbasin's user avatar
4 votes
1 answer
3k views

Are Native Promises Still Slower in Node vs Libraries such as Bluebird? [closed]

Does this question still apply: Why are native ES6 promises slower and more memory-intensive than bluebird?? In regards to the latest versions of Node.js and EC7?
bloppit's user avatar
  • 157
3 votes
1 answer
674 views

Is there any value in using a Promises library versus ES6 Promises?

I see a lot of NodeJS articles recommending the Bluebird library for promisifying your code and avoiding callback spaghetti. Is there any value in using such a library when using Node 4.2.4+ given ...
codecowboy's user avatar