This presentation was recorded at YOW! 2015. #GOTOcon #YOW https://yowcon.com Bodil Stokke - Functional Programming Hipster & Lead Web Developer at Trading Technologies @bodilpwnz RESOURCES https://github.com/bodil https://social.treehouse.systems/@bodil https://bodil.lol ABSTRACT The ECMAScript 2015 specification introduced iterators, which generalise iteration over common data structures, as well as providing an interface for allowing you to iterate over any custom data structures using common language constructs. ES2015 also introduced generator functions, which make writing arbitrary iterators a lot easier and less boilerplatey. But generators aren’t just for making simple iterators over data structures. Because they’re bidirectional—they don’t only produce output, they can also take input—they’re actually coroutines, which means there’s no end to the sort of fun you can apply them to. We’re going to explore how we can use them to make asynchronous programming in JavaScript a lot more elegant—to chart a path out of callback hell. And then we’re going to take a look at what we’ve really discovered: one of the most fearsome mysteries of computer science, suddenly laid bare before us. RECOMMENDED BOOKS Richard Feldman • Elm in Action • https://amzn.to/387kujI Jeremy Fairbank • Programming Elm • https://amzn.to/2WhZCE8 Wolfgang Loder • Web Applications with Elm • https://amzn.to/3jblQ3q Dean Bocker • Don't Panic! I'm A Professional Zig Programmer • https://amzn.to/3ljKT8d Tim McNamara • Rust in Action • https://amzn.to/3ux2R9u https://twitter.com/GOTOcon https://www.linkedin.com/company/goto- https://www.instagram.com/goto_con https://www.facebook.com/GOTOConferences #ECMAScript #Programming #ES2015 #Generators #JavaScript #BodilStokke #YOWcon Looking for a unique learning experience? Attend the next GOTO conference near you! Get your ticket at https://gotopia.tech Sign up for updates and specials at https://gotopia.tech/newsletter SUBSCRIBE TO OUR CHANNEL - new videos posted almost daily. https://www.youtube.com/user/GotoConferences/?sub_confirmation=1
Get notified about new features and conference additions.