News for hackers. Stuff that matters.
Re:Understanding Node.js Event-Driven Architecture by samsonradu on Monday May 08, 2017 @11:38AM (#14292493)
Here you can read about the advantages of using Promises, it s very interesting, though a bit long. https://blog.jcoglan.com/2013/03/30/callbacks-are-imperative...

Promises are easier to compose because you can pass them around as values. Meanwhile callbacks are used only for their side-effects, they do not return anything.

There are no comments on this comment yet.