4 ms·
I've used a reactive model on the front-end for several years now (MobX at one job and then RxJS at another) and haven't encountered anything I would call "Obse
by _bxg1 6y ago
I've used a reactive model on the front-end for several years now (MobX at one job and then RxJS at another) and haven't encountered anything I would call "Observable Hell". I will admit that cascading side-effects can be hard to debug, but they're also a code smell. The whole point of the reactive pattern, IMO, is allowing you to have as few open-ended side-effects as possible. i.e., reactions that change state (instead of re-computing a pure function) should be scrutinized heavily and kept to a minimum. If they're kept to a minimum, then in my experience they remain manageable and fairly easy to reason about.
- thecupisblue 6y agoOh, you didn't do it in java. The mere boilerplate and heaviness of the language makes it Observable hell. Well, it got improved with lambdas the last time I used it, but it's still a clusterfuck of Observables, Singles, wrappers and knee-deep stacktraces. JS allows you a lot more flexibility as a language and it is a far better experience using RxJs.