News for hackers. Stuff that matters.
Re:Async/Await will make code simpler by askmike on Monday August 21, 2017 @02:47PM (#15066704)
Even with a library like async there will be so much boilerplate, since you need to handle (or pass) errors every step of the way.

With async/await you only need to deal with errors at the level you actually care about them (using the language build in try/catch block).

Re:Async/Await will make code simpler by yesbabyyes on Monday August 21, 2017 @03:13PM (#15066933)
In the example above, any error will be passed to the callback sent to getUserInfo - i.e., where you care about it.
Re:Async/Await will make code simpler by samblr on Monday August 21, 2017 @03:33PM (#15067114)
Agreed there there is boiler plate - but with use of live templates in webstorm (or snippet in VS) - I find it getting easier.