Callbacks vs Promises vs RxJs Observables vs async/ await
Video Statistics and Information
Channel: Academind
Views: 129,952
Rating: 4.9289341 out of 5
Keywords: javascript, callbacks, promises, rxjs, observable, observables, async await
Id: jgWnccjXR4I
Channel Id: undefined
Length: 20min 26sec (1226 seconds)
Published: Fri Jul 28 2017
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
I feel like, for explanations of basic implementations like this, it should be demonstrated with traditional function calls rather than arrow functions. More verbose, but makes it much clearer to newbies what is going on. That said, still a good explanation video.
That's a great video. Max seems to understand how to explain the guts of what is actually happening in the code and not just a list of steps needed to get something done. As a relative JavaScript newbie, and a quick dive into what arrow functions are, this all made perfect sense.
I'm just going through my own callback hell now, trying to get a payment gateway library to act slightly more synchronously in the form submit event, and this gives me a few clues as to how I'm going to solve this (in the form submit, a series of things have to happen before the form finally submits, in any order, but ALL those things must complete, and any of them can flag up an error and ask for the form to not do the final submit). If anyone knows how to solve this without all these latest ES6 (?) features, I would love to know. From what I understand, it is essentially the same problem the code in the video solves - turns a series of asynchronous actions into a synchronous series of actions.
Great explanation
That was a pretty great explanation. I started learning to program a few years ago and managed to skip right over callbacks and went straight to promises. I've had to learn them since when I look at code bases I did it write. Good video!