Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notes on chapter 3 (promises) #45

Open
gvwilson opened this issue May 26, 2023 · 0 comments
Open

notes on chapter 3 (promises) #45

gvwilson opened this issue May 26, 2023 · 0 comments

Comments

@gvwilson
Copy link
Owner

  • I love the way you show the way the code is supposed to be used before implementing it, I'm going to steal that
  • the Pledge class is great, it helps clarify promises for me
  • the note about .bind is great
  • I also love "How are real promises different?"
  • I didn't really understand why the character encoding example uses promises (instead of doing a synchronous read). This is a confusion I have in general with Node though -- I often see code that uses promises for reasons that are unclear to me.
  • re "What is the difference between setImmediate and process.nextTick? When would you use each one?" in the exercises -- it wasn't clear to me how I was supposed to figure out the answer to this question. I Googled it and found a pretty good blog post.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant