3 ms·
I'm moving towards vanilla JavaScript for my platform, and one of the things that I've discovered is that if you have a reactive data source then you don't need
by mathgladiator 4y ago
I'm moving towards vanilla JavaScript for my platform, and one of the things that I've discovered is that if you have a reactive data source then you don't need a lot of framework. Granted, I'm taking advantage that the core platform is much more stable than a decade ago.
- throwaway894345 4y agoWhat is a reactive data source?
- bern4444 4y agoI imagine a webhook source could be a reactive data source or any stream based API
- sibit 4y agoTo me a reactive data source would be something like Asana, Trello, Teamwork or on an ecommerce site it could be the cart widget. Basically any type of data that needs to react without requiring a page reload or any data source that needs to sync with another users inputs in real time.
- mathgladiator 4y agoA data source that you subscribe to and get a stream of updates. I'm building https://www.adama-platform.com/ https://www.adama-platform.com/
- zelly 4y agoRxJS aka the reason so many websites take 100MB of memory nowadays Don't use it
- nicoburns 4y agoIt fairness you can do reactive data without RxJS. For example by using the vanilla web socket API. Agree that RxJS is best avoided though.
- djrockstar1 4y agoI got into RxJS cause I had to deal with an Angular project a few months ago, what's wrong with it?
- cnity 4y agoYou can react to state changes with an astonishingly small amount of code with JS [0] [0]: https://github.com/curlywurlycraig/vdom-util/blob/master/src/utils/atom.js https://github.com/curlywurlycraig/vdom-util/blob/master/src...
- thoughtpalette 4y agoLink doesn't work for me. 404s
- cnity 4y agoApologies, should be good now.