I just watched 5 different videos on Generators. Most of them just showed a bunch of code that was doing something whatever api thing rambling on about asynchronous, api and what not. You just showed what a generator does with some absolute basic and familiar things on a low level. This way you didn't distract me from what a generator essentially does. For me this certainly was the best approach. Thank you very much. Well done!
@NetNinja8 жыл бұрын
Awh cool, glad it helped! Thanks for watching :D
@cugamer88627 жыл бұрын
Just finished this the (sadly) last of your ES6 tutorials. You have a real gift for conveying these concepts, keep it up! Subbed, and will be checking out your other series.
@ladyking83 Жыл бұрын
promises, recursion and generator in one example! 🔥
@baluditor3 жыл бұрын
I did not know that JS runs right to left, that's really useful insight.
@HewieTheDev6 жыл бұрын
First - I love all your videos they are brilliant. This one is no different, a beautifully clear explanation. With regards to your genWrapper function, I think it's worth noting that you have it processing the 3 AJAX requests sequentially rather than in parallel. To make a more efficient wrapper you could call all three get requests outside of the genWrapper, with a call to the genWrapper in the 'then' function passing the results into it. Of course you'd need to determine which result set was which in the wrapper but if you had 3 requests the code would only take as long as the slowest request rather than as long as all of them combined. Thanks for all the great teaching.
@garrenmiller29416 жыл бұрын
Man I love your tutorials. I've been all over YT looking for an explanation of generators and most of them were trying to use an API and poorly explaining the generator itself. Great video. Really simple to understand.
@ezekielsaturday26374 жыл бұрын
I was thinking this was one of those rare videos where Shawn gave profound impact to your knowledge base without summoning the Ninjas, Yoshi, Ryu, and Crystal. But then I saw Yoshi as a facebook friend and my hopes were dashed.
@NetNinja4 жыл бұрын
Haha, one day maybe :p
@KG-fj1ex5 жыл бұрын
Was struggling to execute the code until I realised I needed to link to a jQuery library in my index.html! Thank you again Dear Ninja Man for another classic cameo on JS
@alexisdvt8 жыл бұрын
Top notch!! Thanks, I understand the generator itself but I didn't understand clearly until right now the use cases, and with this video, my brain just click!!! Thanks!! Now I can see the power of this thing!!
@ridl276 жыл бұрын
bro, I understand the generator but I dont see the real power of this thing for now, can you help me ?
@charithfernando Жыл бұрын
Hi Shaun, thank you so much for this tutorial with very valuable concepts on jscript. Your teaching skills are tremendous and very detailed. I would recommend this playlist for anyone who just finished the jscript basics tutorial. Stay cool.
@NetNinja Жыл бұрын
You're very welcome! Thanks for the kind words Charith :)
@rostyslavklyba17464 жыл бұрын
I've just completed watching this bunch of tutorials: good stuff! Thanks a lot!!
@Ahmedalaa-ls6zb3 жыл бұрын
This video tutorial is a masterpiece
@mikhailsamotaev56055 жыл бұрын
Thank you very much for this series of lessons! Your style of explanation is straightforward and informative!
@mayankgangwal246 жыл бұрын
Thanks a lot man. You made the basics clear. VERY CLEAR. Each and every chapter has something new to offer. Keep it up (y)
@blissfulDew6 жыл бұрын
Thanks, this playlist is short and sweet. Looking for the next one to learn from your amazing tutorial.
@MuhammadHamza-lf5vu5 жыл бұрын
Great insight on the ES6 related topics.. quite helpful and time saving.. keep up the good work
@khumoyunakhmedov45626 жыл бұрын
To the point, simple and intuitive explanation, muchass graçiasss!
@manueljordan3173 жыл бұрын
Huge thanks for this playlist, I completed to watch it, well done!
@codexperts6 жыл бұрын
Wow, The best explanation for Generators in the world. Net ninja Shaun we got to say this... "The greatest teacher of JavaScript ever to be born on the planet"...
@NetNinja6 жыл бұрын
Ha, thnks so much man :)
@fadiliabdeljalil7706 жыл бұрын
You've done a very good job explaining this, thank you.
@lovesimpleton81775 жыл бұрын
love your tutorials.. so very explained. thank you
@enriquecarvajal73846 жыл бұрын
man thanks you good ! English its not my native language but you explain soo good ! so i learn a lot, thanks bro!
@suemendez56745 жыл бұрын
Thanks for the free lesson, Ninja Master.
Жыл бұрын
Awesome tutorial
@sanisan57875 жыл бұрын
I didn't understand the Ajax part (y did u mix up wd generators?) Rest all was fine...btw is this the last tutorial of es6?? I hv liked n subscribed. Thank you Shaun!!
@Canardeur6 жыл бұрын
Great thanks for this awesome series!
@mufaddalshabbirhusan25657 жыл бұрын
Great tutorials about ECMAScript 2015, do you have more tutorials planned = 12, 13 ? Thanks!
@KelvinWKiger6 жыл бұрын
Damn, this - is - amazing! Thank you.
@myhendry6 жыл бұрын
Excellent video!
@vnymachado6 жыл бұрын
Awesome playlist!
@GeorgiTapalilov7 жыл бұрын
Great explanation
@josephmakram43425 жыл бұрын
Shuan you awesome as usual thank you alot sir
@ahmedmabrouk97937 жыл бұрын
well many thanks Shaun for your efforts .. I really learned a lot from you :) thanks a lot I just noticed that almost no one explained to use Ajax with ECMAScript6 yet .. specially when dealing with Laravel not plain php I searched for that for long long time and didn't catch any real results. I know Jquery make it simple especially when making a post request but .. I wanna do that with ecma6 .. I feel ecma6 make it easy to understand and deal with when you are coming from backend programing languages which make me feel I don't need to use jquery that much as I feel more comfortable with ecma6. may you give advise about that ? or even lead me to a resource can be useful about that point ? many thanks again and please accept my best regards :)
@hamzafaysal9096 жыл бұрын
plz do a series on ajax & json... thanks for this informative series..
@olegbaranovskyy96857 жыл бұрын
Thank, great video!
@DrNabeel204 жыл бұрын
Thank you :D
@chin2km7 жыл бұрын
this.is.the.best();
@les29976 жыл бұрын
Good explanation!
@rutpshah7 жыл бұрын
Great tutorial! Please add few more examples in this video to get more detailed understanding.
8 жыл бұрын
yes 2 things please refresh page show how it looks then describe how it works and 2nd share your code examples next time plz :D other than that great vid :D
@ShahzaibKhan-li8wi6 жыл бұрын
Is this series of tutorial enough to go for react tutorial or I need to learn other things to go on to react??
@Ak-iy5db6 жыл бұрын
thank you bro. you explained well. Can you make a tutorial on ajax with servlet ?
@romanroman88487 жыл бұрын
shaun u r great! there is more videos of es6?
@khumoyunakhmedov45626 жыл бұрын
Could you please provide some simple example projects on github that uses generators, that would be good to examine and learn this feature in action
@AndricLibreSinn7 жыл бұрын
It would be great if you could do a video on how generators work within the JavaScript event loop. I feel like this is cheating the message queue but honestly I'm not 100% on how this even works.
@joaofnds8 жыл бұрын
You forgot a '1' in the title! This is lesson #11 ;)
@NetNinja8 жыл бұрын
+João Fernandes Well spotted - just making sure everyone is paying attention ;). Thanks!
@brockz246 жыл бұрын
In my project ,I get object error in Ajax calls often how can I fix
@mark1234500247895 жыл бұрын
last bit where do u define yielded
@hamdyyoussef51104 жыл бұрын
Thank You
@pepeback6 жыл бұрын
You didn´t show all the code in the last example, the most interesting one. I suppose you are missing one line: genWrapper(generator);
@violetpaw15938 жыл бұрын
Can I Use This To put any item into a game?
@HardwareAddiction7 жыл бұрын
It seems Async/Await would fit better in this case. It's based off generators of course. I guess support was lacking back in 2016.
@sweetbabyjesus10006 жыл бұрын
I was watching this thinking the exact same thing ! I'm looking into redux-saga and it utilizes generators, it seems like a much more manual way of just using async / await ?
@kerwebayerlota79655 жыл бұрын
Hi Shaun, can you also make a tutorial on how to make a payroll system in php plz.
@MissECylon4 жыл бұрын
Is this still relevant? I mean, are generators still being used? And streams and monads?
@liam_iam3 жыл бұрын
from what I know so far about Promises, it seems like the example shown in the video would make a lot more sense as a simple then(...) chain. I doubt that having a super detailed understanding of generators is super helpful in the modern scene
@vietanhvu81556 жыл бұрын
Why you don't talk about Promise in ES6
@shermirsaliev52277 жыл бұрын
i didn't get the part that js is right to left, how is that?
@artihlec7 жыл бұрын
Yep, JS runs from RIGHT to Left.
@supremoluminary4 жыл бұрын
JavaScript does not run from right to left.
@Driver00776 жыл бұрын
window.onload = function(){ function* gen(){ var x = yield "pear" var y = yield "banana"; var z = yield "apple"; return x + y + z; } var mygen = gen(); console.log(mygen.next()); console.log(mygen.next(10)); console.log(mygen.next(5)); console.log(mygen.next(3)); }
@alexisdvt8 жыл бұрын
BTW you don't need to use the return keywords
@les29976 жыл бұрын
Right, both return handle() are not needed, just call handle()