justsml / escape-from-callback-mountain

Example Project & Guide for mastering Promises in Node/JavaScript. Feat. proposed 'Functional River' pattern

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thanks for the kind words in https://github.com/justsml/escape-from-callback-mountain/wiki/Beating-a-dead-horse%3F

benjamingr opened this issue · comments

If you have any feedback about how native promises can give users a better debugging experience please let us know :) We're gathering use cases for Node.js to see what we can do better.

Hey @benjamingr - thanks for reaching out.

I'm finding that lots of docs for 3rd party libs include overly simplified Promise examples which lead to problems if used without deeper understanding.

Often it's forgetting to return or using .catch incorrectly.

IDK, I wish there was better docs for Promises. MDN seems dedicated to edge cases (saving promises as a variable, calling .then multiple times on a single promise...)

We're thinking about doing an official promises and async/await guide for Node.js - do you think that might help?

Definitely, that would move in the right direction. 👍

I'd love to help out with the effort, can you point me to the issue/discussion?

Thx @benjamingr

Is this the discussion @benjamingr nodejs/user-feedback#77 ?

@justsml thanks, that issue is specifically about the user survey we want to send out - there is discussion at https://github.com/nodejs/promise-use-cases and https://github.com/nodejs/promises-debugging