I knew I recognised her from the Functional Programming talk I saw years ago! It's one of the first talks I ever saw and it drove me to learn more JS! Go Anjana!
Finally we have a great explanation to generators. I knew about these for quite some time but since they are not much used, had limited knowledge on how to make them work with complex things, especially async ones. Great session.
I've read about the iterators and iterables from MDN and since then I was like, now I know what can be iterated on JS and how. And when I read about generators I was like, yeah they are there, but how to effectively use them. Thank you Anjana for showing us the various ways.
It was so exciting it ended in a blink of an eye. Thanks Anjana, generators have big potential. I’m gonna experiment with them, doing state manager and renderer.
This is a great talk! However I always think back to the JS platform docs at my second job (at a very large company).... " Generators: Don't use generators." And it still makes sense because no matter what you do you'll always end up with code that's "too clever".
As always, her presentation is amazing!. One small observation: Actually the cardDeck, can be expressed in a purely functional way, as the generators returned by generator function are iterable as well as iterator: const cardDeck = function* () { const suits = ["♣", "♦", "♥", "♠"]; const court = ["J", "Q", "K", "A"]; for (let suit of suits) { for (let i = 2; i
You've been using them without even knowing it. Async/Await are basically syntactic sugar for generators. Before them, to achieve a similar functionality, you had to use generators.
Cool... I've seen some really stupid negative comments on some of her other talks but the Anjana fan club is out in force on this one... as it should be.
@@Ty-13 Not currently, and there are a lot of reasons for that. One there are a lot of better frameworks out there more suited for speed that people should consider like solidjs. My framework is different. It doesn't have custom components, just pre-built components that all fit together in a grid system. The cool thing is getting data from the user happens synchronously. So you don't need to have call back functions for forms. When it's on the screen the program yields and waits for the form to be submitted before continuing execution
Still need to be explain, what is the easiest way of implementing data science and Machine learning with js, and to more often a offline ide for such purpose.
Great presentation and great energy! Regarding generators - it might be just me but it still feels to me like generators are a cool yet much less readable way to do stuff. Yield makes code run in a non-linear and less intuitive fashion. I wonder if it is just me...
Really cool technology, great to finally have it in JS. We already have that in C# for years, its nothing new. I wonder when will source generators come for JS.
not sure if python stole from js or the other way around, but they seem to look and function identically. very fun to use, but easy to create unreasonable code imo.
So one of the most important things generator does is that you cannot store an infinite amount of data on your memory like calculating factorials, or stream of data through api it look something like pagination only bring that part of data, when it actually needed.
I have a theory, that she herself is an asynchronous iterable generator, that consumes a lot of data, and some water, and then yields it for all of us, mere mortal, to try and get.
Good code is clear, not tricky. Implementing a bidirectional channel using a proper object would be so much more readable (and customizable) than using generators’ .next tricks
don't fixate on learning as quickly as possible, this is wrong approach. Just write your own code, bc that's the only way to get better at solving problems with help of programming language of ur choice.
The problem with those who lack computer education is exactly this. The order is actually like this: Stackless coroutines, event loops, self-suspending functions, iterators, simpler syntax generators, coroutines with simpler syntax, async functions, tasks, promises or futures. But wait, my dear friends. Promises in JavaScript have nothing to do with promises in reality. They are actually a function that puts itself in a queue! JavaScript's foolish features insult the spirit of programming and computer science.
I knew I recognised her from the Functional Programming talk I saw years ago! It's one of the first talks I ever saw and it drove me to learn more JS! Go Anjana!
same thing here bro she is amazing 🔥🔥
Same here
Yay! One more Anjana talk on the internet.
THAT TALK WAS SO GOOD RIGHT?!
She has given several awesome talks, and you can find multiple of them here in youtube! Search for her name, the subjects she covers are varied.
she is back
Folks been waiting for her like a star wars trilogy
Exactly my thought every time i see her in a video
@@bradyfractal6653 She is just excited and happy to be presenting.
I love her energy. Great presentation too! I've always struggled understanding generators.
Bro got that Einstein e=mc2 rizz 👀
just fascinated how can something that's so under talked and underrated small little thing can be this powerful and cool.
I've never seen any speaker in a tech conference that talk so enthusiastic like her
Finally we have a great explanation to generators. I knew about these for quite some time but since they are not much used, had limited knowledge on how to make them work with complex things, especially async ones. Great session.
I can't believe that this video helped me understand generators better than anything I ever saw or read on generators.
Anjana is very energetic which makes the presentation interesting!
Such a nice talk, it's a shame that the person that editted it made a lot of cuts when code was presented and instead showed audience from the back...
idk what are u talking about
@@N32-e1g approx. 20:15 - 22:30 she explains her code step by step, but we don't see it because it's zoomed out.
@@4ipon4ik anyway u can't learn js by watching conferences
@@N32-e1g idk what are u talking about
Very good intro. And yes you're totally right, generators are underused. Very much appreciate your talk!
I've read about the iterators and iterables from MDN and since then I was like, now I know what can be iterated on JS and how. And when I read about generators I was like, yeah they are there, but how to effectively use them. Thank you Anjana for showing us the various ways.
Love her energy, what a beautiful soul. Thanks for this wonderful presentation!
I studied generators few years ago but this explanation is so fun man
start at 9:18
Brilliant talk. Please keep the code being talked about on the screen!
Yup! Here's the code/slides observablehq.com/@anjana/the-power-of-js-generators
Her energy is unmatched
Anjana's talks are always bangers.
Watched from the beginning to the end. Good stuff!
Another excellent talk. I'd recommend a talk she has about functional programming. She is a super good communicator!
Wow she's exceptional.Great job on this presentation!
No doubt its very useful but
Why would you switch camera while she is explaining the code 20:15. :(
yeah, producer was sleeping or editor mistake, or what?
This could be among my favorite conference talks
i love her energy😃
Excellent presentation of GENERATORS! (who saw the introduction will understand)
Great energy of Anjana Vakil! Thanks!
she is crazy)) and Is it contagious) It spreads) I even see how I shout "Generators!" in the middle of night while I am sleeping
She becomes more energetic every time she takes a sip of this "water".
3:28 wonder bit about the concept. we already could see the loop is over by value is emty? and whey not send done: true when last element is send?
It was so exciting it ended in a blink of an eye. Thanks Anjana, generators have big potential. I’m gonna experiment with them, doing state manager and renderer.
We want more conf with her !
This is a great talk! However I always think back to the JS platform docs at my second job (at a very large company).... " Generators: Don't use generators."
And it still makes sense because no matter what you do you'll always end up with code that's "too clever".
thanks!
😂🤣😅
"too clever" a.k.a. requires prerequisite knowledge of how they work, which most devs lack because they're too scared to use them
Bruh how is this too clever? It literally is explained in a 30 minute talk
+1
Great to see Anjana again, wow.
Finally the legendary is showing up
Thank you for speaking in this video. I have never heard of generators but now I am curious. Thank you.
As always, her presentation is amazing!. One small observation: Actually the cardDeck, can be expressed in a purely functional way, as the generators returned by generator function are iterable as well as iterator:
const cardDeck = function* () {
const suits = ["♣", "♦", "♥", "♠"];
const court = ["J", "Q", "K", "A"];
for (let suit of suits) {
for (let i = 2; i
Definitely she is amazing 😊
awesome Anjana Vakil, thanks for this masterclass
I have no idea what she’s talking about but it looks cool
Thanks Anjali for showering us with your...
Big fan of Anjana. Good to see her again.
love her power
One of the best speakers.
You've been using them without even knowing it. Async/Await are basically syntactic sugar for generators. Before them, to achieve a similar functionality, you had to use generators.
Wow, this is such a great video. Thanks so much!
Great talk, thanks a lot!
What is the tool/website called where Anjana makes her code blocks with?
At 2:38 she says "duck-duck-go'ing them..." #BOSS
Cool... I've seen some really stupid negative comments on some of her other talks but the Anjana fan club is out in force on this one... as it should be.
She is amazing, fun, smart, and beautiful
is there a way to download the slides, presented in the video?
Happy to see you again 💜💜
Great presentation! Thanks!
I really appreciate your performance. Now I know more about generators and wanna apply them.😎
Amazing stuff! One of the best talks ever! 🙌
Wow this is very cool!
Taking from infinite sequences absolutely blew my mind! Thanks for sharing 😊
She made generators quite simple to understand !
Would it be possible to get those code snippets from somewhere? Yes, I can copy from the screen but maybe I can save some typing if it is.
observablehq.com/@anjana/the-power-of-js-generators
observablehq.com/@anjana/the-power-of-js-generators
the link was on the screen in the beginning observablehq.com/@anjana/the-power-of-js-generators
The slideshow is linked at the beginning of the talk.
Get a mac
Anjana knows the best way to engage all your senses
21:30 I want to see the code...
How does event loop handles it?
nice explanation
Knew Anjana from her talk on Functional Programming. On her way to be the public voice of JavaScript.
You're like an Marvel Superhero, but to JS. Trully saved me a day (again).
Awesome I finally understand ;)
Generators are so underutilized. I created a javascript framework with them that let's me build web apps in 1/10th of the time it took me before.
Is it open source?
@@Ty-13 Not currently, and there are a lot of reasons for that. One there are a lot of better frameworks out there more suited for speed that people should consider like solidjs. My framework is different.
It doesn't have custom components, just pre-built components that all fit together in a grid system. The cool thing is getting data from the user happens synchronously. So you don't need to have call back functions for forms. When it's on the screen the program yields and waits for the form to be submitted before continuing execution
Great talk! Love how generators can be used for various usecases. Also lowkey, I'm getting Zendaya vibes.
What is Zendaya? Now I'm curious
What is music intro?
wovvv ,,,,,, really amazing....!
She is fire 🔥
great talk btw you guys could have at least linked up the resources from the end of the video to your descriptiopn
legend is back
Her energy and enthusiasm is mind-blowing.
Still need to be explain, what is the easiest way of implementing data science and Machine learning with js, and to more often a offline ide for such purpose.
I looked for this for ages
Anyone make the Starwars example work? I cant. How it is working? How i can console.log the object starwars with all the data?
Thanks
She is back again
I didn't realize generators were so powerful
HOT NEW FEATURE FROM 6 YEARS AGO 🤣 BTW loved it.
Why isn't js pressed about using generators for iteration like c# is? Isn't enumeration of entire arrays really bad in general?
Good to see you.
i'm not sure why do we need to use them
Great presentation and great energy! Regarding generators - it might be just me but it still feels to me like generators are a cool yet much less readable way to do stuff. Yield makes code run in a non-linear and less intuitive fashion. I wonder if it is just me...
AWESOME
I thought I understood generators. This blew my mind.
Really cool technology, great to finally have it in JS. We already have that in C# for years, its nothing new.
I wonder when will source generators come for JS.
Quality content, but I needed to slow down the video speed a little :D
not sure if python stole from js or the other way around, but they seem to look and function identically. very fun to use, but easy to create unreasonable code imo.
So one of the most important things generator does is that you cannot store an infinite amount of data on your memory like calculating factorials, or stream of data through api it look something like pagination only bring that part of data, when it actually needed.
I have a theory, that she herself is an asynchronous iterable generator, that consumes a lot of data, and some water, and then yields it for all of us, mere mortal, to try and get.
awesome
Good code is clear, not tricky.
Implementing a bidirectional channel using a proper object would be so much more readable (and customizable) than using generators’ .next tricks
Welcome back Anjana
I'm sorry but it's not AanJna VaeKiyal it's Anjana Vakil
can anyone tell me how to learn javascript as fast as possible
don't fixate on learning as quickly as possible, this is wrong approach. Just write your own code, bc that's the only way to get better at solving problems with help of programming language of ur choice.
Only in practice on complex projects with many real-life featutes.
@@mikoaj1954 true thanks man
Makes you wonder why they can't get Tail Recursion into JavaScript compilers, if they can do this stuff :/
og is back ❤️
The problem with those who lack computer education is exactly this.
The order is actually like this:
Stackless coroutines, event loops, self-suspending functions, iterators, simpler syntax generators, coroutines with simpler syntax, async functions, tasks, promises or futures.
But wait, my dear friends.
Promises in JavaScript have nothing to do with promises in reality. They are actually a function that puts itself in a queue!
JavaScript's foolish features insult the spirit of programming and computer science.
Like your energy
❤️❤️🔥
this is straight up sorcery