3 ms·
Learning RxJS made me a better programmer faster than anything since the Gang of Four Design Patterns book 20 years ago.
by miiiiiike 2y ago
Learning RxJS made me a better programmer faster than anything since the Gang of Four Design Patterns book 20 years ago.
- roblh 2y agoWhat did you use it for, specifically? A personal project, or did you work on something that already used it heavily? I’ve played with it, and it’s interesting, but I haven’t quite found a reason to use it yet.
- miiiiiike 2y agoI use it in several places in my company. Being able to compose multiple async streams of data is the best part. One simple example is a scroll tracker. I needed to track a user’s scroll, determine the direction, and combine it with touch events. I wrote a prototype using event handlers and the code descended into incomprehensible spaghetti pretty quickly. With RxJS I was able to implement it as a series of custom operators that were easy to write, test, and use.