Snqwoyy7d0bqtvm2mbje
SkillsCast

What Tamagotchis Can Teach You About ES6 Generators

10th July 2019 in London at Business Design Centre

There are 71 other SkillsCasts available from FullStack London 2019 - The Conference on JavaScript, Node & Internet of Things

Please log in to watch this conference skillscast.

797871267 640x360

What do Tamagotchis — everyone’s favourite digital pets from the 90s — and ES6 generators — pausible functions for async tasks — have in common? Both are really fun to play with. As a recent side project, Jenn built a web-version of a Tamagotchi. But she struggled with one key element: how to handle a series of animations. What do you do when animations need to know that other animations are complete? What do you do when you’ve queued animations but a user event needs to be handled instead? This talk explores where Jenn went wrong (hint: promises) and what worked (hint: generators). You’ll leave this talk with a solid grasp of how to combine promises, generators, and coroutines for async work — whether it’s for a Tamagotchi or your day-to-day work.

YOU MAY ALSO LIKE:

Thanks to our sponsors

What Tamagotchis Can Teach You About ES6 Generators

Jennifer Creighton

Jenn Creighton is the Lead Frontend Engineer @ The Wing and also a conference speaker. She lives in New York with her two cats, one dog, and maintains a Home for Abandoned Succulents, Mismanaged Plants and Otherwise Ailing Flora. You can find her online @gurlcode.

SkillsCast

Please log in to watch this conference skillscast.

797871267 640x360

What do Tamagotchis — everyone’s favourite digital pets from the 90s — and ES6 generators — pausible functions for async tasks — have in common? Both are really fun to play with. As a recent side project, Jenn built a web-version of a Tamagotchi. But she struggled with one key element: how to handle a series of animations. What do you do when animations need to know that other animations are complete? What do you do when you’ve queued animations but a user event needs to be handled instead? This talk explores where Jenn went wrong (hint: promises) and what worked (hint: generators). You’ll leave this talk with a solid grasp of how to combine promises, generators, and coroutines for async work — whether it’s for a Tamagotchi or your day-to-day work.

YOU MAY ALSO LIKE:

Thanks to our sponsors

About the Speaker

What Tamagotchis Can Teach You About ES6 Generators

Jennifer Creighton

Jenn Creighton is the Lead Frontend Engineer @ The Wing and also a conference speaker. She lives in New York with her two cats, one dog, and maintains a Home for Abandoned Succulents, Mismanaged Plants and Otherwise Ailing Flora. You can find her online @gurlcode.

Photos