Luciano Mammino
Luciano Mammino
Luciano was born in 1987, the same year Super Mario Bros was released in Europe, which, by chance is his favorite game! He started coding at the age of 12, hacking away with his father's old i386 armed only with MS-DOS and the QBasic interpreter and since then he has been professionally a software developer for more than 14 years. He is currently a senior Architect at fourTheorem where he is helping companies to get the best of the cloud, AWS and serverless. He loves the full-stack web, Node.js & Serverless and co-authored "Node.js design patterns", maintains fstack.link and co-hosts awsbites.com.
JSNation 2023JSNation 2023
27 min
JavaScript Iteration Protocols
How many ways do you know to do iteration with JavaScript and Node.js? While, for loop, for...in, for..of, .map(), .forEach(), streams, iterators, etc! Yes, there are a lot of ways! But did you know that JavaScript has iteration protocols to standardise synchronous and even asynchronous iteration?
In this workshop we will learn about these protocols and discover how to build iterators and iterable objects, both synchronous and asynchronous. We will learn about some common use cases for these protocols, explore generators and async generators (great tools for iteration) and finally discuss some hot tips, common pitfalls, and some (more or less successful) wild ideas!