Hacker News new | ask | show | jobs
by roblh 617 days ago
What 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.
1 comments

I 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.