News for hackers. Stuff that matters.
Re:Learn Node.js: A free interactive course for Node beginners by romanovcode on Wednesday September 07, 2016 @10:55AM (#12443896)
>at WORST look like this using promises: http://paste.ofcode.org/Nx2infQQ2aESNxxiwJC7cN

I'm sorry but I can't see how it is good-looking code. In my opinion this piece should look like this:

    var dbResource = fetchDbResource(query);
    var serviceResponse = callSomeAsyncService();
    var otherService = callSomeOtherAsyncService();

There are no comments on this comment yet.