Please log in to watch this conference skillscast.
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:
What Tamagotchis Can Teach You About ES6 Generators
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.