News for hackers. Stuff that matters.
Re:A Modern JavaScript Tutorial by verisimilidude on Monday December 07, 2020 @12:32PM (#25334456)
That’s probably good general advice.

One problem. I’m increasingly coming across devs who’ve never used Promises directly, only async/await. They’re introducing all kinds of problems into code because they don’t have that foundational understanding of Promises. I think it’s essential to know how Promises work, even if we generally recommend async/await.

Also, Promise interface can do things that async/await cannot, such as Promise.all, and other unusual async execution scenarios. It’s important to have those tools in your belt.

Re:A Modern JavaScript Tutorial by nailer on Monday December 07, 2020 @01:05PM (#25334926)
100%, people should definitely understand Promise.all() and Promise.any().
Re:A Modern JavaScript Tutorial by nailer on Tuesday December 08, 2020 @06:23AM (#25343955)
> Promise interface can do things that async/await cannot, such as Promise.all

PS I should clarify await and Promise.all/any work fine:

    await Promise.all(items)