Skip to content

Instantly share code, notes, and snippets.

@chadfurman
Last active February 10, 2017 13:20
Show Gist options
  • Select an option

  • Save chadfurman/ebf07ea56c9a4d6a4d9669d040a4c888 to your computer and use it in GitHub Desktop.

Select an option

Save chadfurman/ebf07ea56c9a4d6a4d9669d040a4c888 to your computer and use it in GitHub Desktop.
Notes7
  • Callback Hell -- indentation isn't the problem. The problem is about losing control of the invocation of your code.

  • The "inversion of control" from callback hell is the problem.

  • Generators were great to learn about. It's much clearer now.

  • Generators are an old thing in computer science. Neat to know they're also in JS

  • Yield and .next() make much more sense now :)

  • Where would we use Generators, though?

  • Using promises and generators together is something new! That's interesting...

  • ES7 async functions might make the interaction much nicer

  • Promises are good not only because they're cleaner, but because they solve the IoC problem

  • We have been using promises in our code quite a bit. The explanation with setTimeouts was nice

  • These last couple of weeks felt kind of rushed -- he skipped some slides! coroutines, observer/singleton, etc.

  • If we put together all the notes, it would be useful. But someone would have to find them and use them.

  • Would be good to have the notes as a Q article

  • Not much preference as to the tasks, so we'll split the remaining week between Clevertraining and the Q article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment