https://github.com/lmammino/iteration-protocols-workshop
A FREE and open-source workshop about JavaScript iteration protocols: iterator, iterable, async iterator, async iterable
https://github.com/lmammino/iteration-protocols-workshop
iterable iterators javascript node nodejs protocols tests tutorial workshop
Last synced: 10 months ago
JSON representation
A FREE and open-source workshop about JavaScript iteration protocols: iterator, iterable, async iterator, async iterable
- Host: GitHub
- URL: https://github.com/lmammino/iteration-protocols-workshop
- Owner: lmammino
- License: mit
- Created: 2022-05-02T12:52:02.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-04T13:12:27.000Z (over 3 years ago)
- Last Synced: 2025-03-28T02:13:01.307Z (11 months ago)
- Topics: iterable, iterators, javascript, node, nodejs, protocols, tests, tutorial, workshop
- Language: JavaScript
- Homepage: https://nodejsdesignpatterns.com
- Size: 2.39 MB
- Stars: 112
- Watchers: 3
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JavaScript Iteration protocol workshop
[](https://github.com/lmammino/iteration-protocols-workshop/actions/workflows/node.js.yml)
A workshop about JavaScript iteration protocols: iterator, iterable, async iterator, async iterable by [@loige](https://twitter.com/loige). 😎
> I also have a workshop about [Node.js Streams](https://github.com/lmammino/streams-workshop).
## Prerequisites
Before getting started, make sure you have the following installed:
- Node.js 16+
- NPM 8+
- A text editor of your choice
- A bash-compatible shell
## Getting started
Clone the repository and run `npm install` to get all the necessary dependencies.
The workshop is divided in chapters and the first chapter starts at [01-intro](/01-intro/README.md).
Every chapter will teach you a specific iteration concept and offer you some examples and exercises to familiarize with that concept.
You will often find 2 different types of interactive actions:
- 🎭 **PLAY** : commands or instructions you should spend some time with to get familiar with some concepts or APIs
- 🏹 **Exercise**: when you have to use some of the concepts you just learned to solve a programming problem. Generally every exercise will have a test that you can run to validate your solution.
Enjoy! 🙃
[➡️ GET STARTED](/01-intro/README.md).
## Shameless plug 😇
If you like this piece of work, consider supporting me by getting a copy of [Node.js Design Patterns, Third Edition](https://www.nodejsdesignpatterns.com/), which also goes into great depth about generators, iterator protocols, streams and related design patterns.
If you already have this book, **please consider writing a review** on Amazon, Packt, GoodReads or in any other review channel that you generally use. That would support us greatly 🙏.
## Contributing
In the spirit of Open Source, everyone is very welcome to contribute to this project.
You can contribute just by submitting bugs or suggesting improvements by
[opening an issue on GitHub](https://github.com/lmammino/iteration-protocols-workshop/issues) or by [submitting a PR](https://github.com/lmammino/iteration-protocols-workshop/pulls).
## License
Licensed under [MIT License](LICENSE). © Luciano Mammino.
