DEV Community

Discussion on: Guide for the daily JavaScripter

Collapse
 
thecodingalpaca profile image
Carlos Trapet

This is generally a good compilation, but a beginner would totally get lost in the amount of concepts, especially considering you don't explain what they are/what they mean. Consider providing links for them.

Also:

Async / await instead of promise.then

Why?? Is this based on any arguments or is it just something made up out of the blue?

I must strongly disagree, the only advantage async/await has over Promise chaining is that with async/await you can directly assign the value the promise resolves to, saving you a whopping line of code.

I personally prefer promise chaining as I find it much more flexible; maybe you don't want to pause code execution after all.

Collapse
 
damxipo profile image
Damian Cipolat

Thanks for the comment, for this documment I assume the developer has some of experience working in node.js the main idea is not a tutorial style. Is more a summary of best practices and code-style.

Collapse
 
mateiadrielrafael profile image
Matei Adriel

Wdym by pause code execution? Async await doesnt actually pause it everywhere, just in the function you call it from.