conf.directory

What Tamagotchis can teach you about generators | Jenn Creighton | JSConf Korea 2019

Jenn CreightonJSConf EU
25:58
1,130 views
Published October 5, 2019

About this talk

What do Tamagotchis — everyone’s favorite digital pets from the 90s — and generators — pausible functions for async tasks — have in common? Both are really fun to play with. As a recent side project, I built a web-version of a Tamagotchi. But I 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 handle instead? This talk explores where I 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.

Stay Updated

Get notified about new features and conference additions.

What Tamagotchis can teach you about generators | Jenn Creighton | JSConf Korea 2019 by Jenn Creighton | conf.directory | conf.directory