News for hackers. Stuff that matters.
Re:JavaScript Promises Discussion: Make Them Monadic? (2013) by jey on Thursday February 15, 2018 @04:40PM (#16387932)
> Now they expect me to write async calls in a try-catch block!?!

What do you mean? In my experience, the use of async/await leads to much cleaner code for I/O driven tasks like querying APIs and databases. Yes, I do have a try/catch at the top of the callstack to catch and log unexpected errors.

Re:JavaScript Promises Discussion: Make Them Monadic? (2013) by vorpalhex on Thursday February 15, 2018 @04:48PM (#16388005)
async/await worries me, not for abstract language reasons but because it hides complexity in a way not friendly for junior engineers.

I imagine a lot of code that should be thought out and made parallel being forced into a synchronous flow.

Note that promises aren't a ton better in this regard, and come with a ton of confusion themselves. In short, async is hard.

Re:JavaScript Promises Discussion: Make Them Monadic? (2013) by jey on Thursday February 15, 2018 @04:55PM (#16388082)
Promise.all() does a pretty good job of parallelizing tasks while maintaining readability.