Hi Nick thanks for writing on this subject. I have yet to use async/await in a project but could see how it can be useful.
One thing I wanted to note from your section "Callback Hell?" is that the promises in that section could be structured to avoid that callback hell.
I realize that the example is to show a good contrast between callback hell and async/await but it seemed to be presented as promises are not able to be a solution for callback hell. I thought of two ways the promises could be restructured:
Hi Nick thanks for writing on this subject. I have yet to use async/await in a project but could see how it can be useful.
One thing I wanted to note from your section "Callback Hell?" is that the promises in that section could be structured to avoid that callback hell.
I realize that the example is to show a good contrast between callback hell and async/await but it seemed to be presented as promises are not able to be a solution for callback hell. I thought of two ways the promises could be restructured:
This is a generic version of the previous one...
Still not a clear as the async/await version but does the same thing and does avoid the callback hell.