this is great! I've only been comfortable enough with iteratorss etc to be able to consume them, but never enough to actually know what I was doing and definitely not enough to implement them. now I get it, tysm!
Great video, I like it. One little nice trick about iterable objects and generators - if you want to convert your object/class into iterable, implemented [Symbol.iterator] method can be generator function, which is far more convenient than writing simple iterable.
i would love to been taught about how normal generators can yield promises and the benefit of of such exotic thing when compared to the more normal asyncGenerator that people use normally when they have promises
Not a stupid question! I think you're right. But one thing I got wrong here is returning the final value with done:true. Really, the next result after the final value in the sequence should have value:undefined, done:true.
Great video. We learned what Generators and Iterators are and how to use them in the least useful case in life - writing a function that generates fibbonacci numbers. I completely do not understand why such materials are created....
By the way, would anyone be interested in a live Q&A? I'm thinking about doing one when we reach 25K subscribers. Lemme know!
THANKS FOR WATCHING!
i would be interested!
The way you explain things, I feel it always clicks the first time. Watching your video should be valid experience on a CV 😂
Holy shit, probably first breakdown of an iterators that I deeply understood! Gj man!
Amazing explanation, easy and clear to understand, especially since you started from ground zero and worked up
this is great! I've only been comfortable enough with iteratorss etc to be able to consume them, but never enough to actually know what I was doing and definitely not enough to implement them. now I get it, tysm!
Thank you for the great vid!
Amazing, understood everything you said now I'm excited to find ways to use that in my project.
Finally yield makes sense! Thanks a lot 🤝
Great video, I like it. One little nice trick about iterable objects and generators - if you want to convert your object/class into iterable, implemented [Symbol.iterator] method can be generator function, which is far more convenient than writing simple iterable.
Oh, that's a great tip, thanks for sharing!
thanks! very well explained and super helpful!
Really cool explanation. Thank you
Very well! Really good. But when do you use generators in your projects? Any good examples of it ?
This is really good , i like your explanation , but what about usecases of those generators , i was waiting for some projects/packages uses them
I love this so much
i would love to been taught about how normal generators can yield promises and the benefit of of such exotic thing when compared to the more normal asyncGenerator that people use normally when they have promises
Super helpful. Thanks!
You're THE G🔥🔥
nice explanation and i would like know about "for await...of", async generator, async iterator and async iterable protocols, it confuses me alot..
Thanks! I'm planning to talk about the async versions soon!
This is why types are nice; you have them in js, you just can't express them. Instead, we reinvent them as 'protocols'.
I have a stupid question, is reversing value and done declaration change evalution order and solves problem with do/while loop ?
Not a stupid question! I think you're right. But one thing I got wrong here is returning the final value with done:true. Really, the next result after the final value in the sequence should have value:undefined, done:true.
Great video. We learned what Generators and Iterators are and how to use them in the least useful case in life - writing a function that generates fibbonacci numbers. I completely do not understand why such materials are created....