Skip to content

The Power of JavaScript Generators

Photo of Alex Moldovan
Hosted By
Alex M. and 2 others
The Power of JavaScript Generators

Details

Generators have been around in JavaScript since ES2015, yet remain largely ignored by many JS devs, who don't see why or how they'd use them in their day-to-day work.
But generators - which we can think of as special functions whose execution can be "paused" and resumed later on - are actually extremely powerful tools for producing and consuming series of data. That makes them perfect for implementing lazy sequences, custom iterables, animation, even the convenient asynchronous programming we now enjoy with "await"!

In this talk we'll dive into how JS generators work, what makes them so powerful, and why you should care.

About Anjana

Anjana suffers from a chronic case of curiosity, which led her from philosophy to English teaching to computational linguistics to software development. As a developer advocate at Observable, she codes & streams from her home base in San Francisco.

In the before-times, you could often find her speaking at events around the world; in the now-times it's around the web. A lifelong learner, she loves to share the joy of programming and advocate for a more diverse, equitable, and ethical tech industry. Ask her about the Recurse Center & Outreachy, she's an alumna of both!

Note: This meetup will be recorded and added on our youtube channel.

Photo of JSHeroes Meetups group
JSHeroes Meetups
See more events
Online event
This event has passed