Hacker News new | past | comments | ask | show | jobs | submit login

>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();



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: