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:
- WebAssembly Deep Dive with Brian Sletten (in London on 21st - 22nd November 2019)
- Solandra Hands-On Tutorial & Emergent Behaviour In Insects (in London on 28th October 2019)
- Free Code Camp - October (in London on 29th October 2019)
- RS232 Board for the Pi (SkillsCast recorded in September 2019)
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.