Chapter 2Deep in the Sequence
I have childhood memories of playing a puzzle video game in which you had to guide a falling stream of water across the screen using all kinds of tricks. You could split the stream, merge them back later, or use a tilted plank of wood to change their direction. You had to be creative to make the water reach its final goal.
I find a lot of similarities between that game and working with Observable sequences. Observables are just streams of events that we can transform, combine, and query. It doesn’t matter whether we’re dealing with simple Ajax callbacks or processing gigabytes of data in Node.js. The way we declare our flows is the same. Once we think in streams, the complexity of our programs goes down.
In ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access