News for hackers. Stuff that matters.
Re:Ask HN: Is Meteor.js still a thing? by rco8786 on Saturday November 04, 2017 @12:29PM (#15625739)
> React/RxJS front-end stack

Tangent here, but I see this combo a lot and I don't understand what RxJS is adding to the equation on the front-end. What were/are your motivations for using RxJS?

Re:Ask HN: Is Meteor.js still a thing? by Blixs on Saturday November 04, 2017 @12:55PM (#15625858)
We use RxJS for data loading and global state management. Started with redux first, but really disliked all the boilerplate code. RxJS enabled us to have a really smart data loading and caching mechanisme that automatically pushes changes to all streams that rely on a particular piece of data whenever that data changes. No need for reducers, selectors, actions, constants or sagas. Just components with one or many RxJS subscriptions, and services to alter that data. It's been working really well for us so far.
Re:Ask HN: Is Meteor.js still a thing? by littlecranky67 on Saturday November 04, 2017 @04:57PM (#15626864)
Totally agreed, after I jumped through the hoops of learning RxJS I realized it can replace all the libraries you mentioned just because of the way RxJS worked. If you are interested, I created a small little Redux-clone based on Observables/RxJS as a fun project, but am using it in my side projects in production now: https://github.com/Dynalon/reactive-state
Re:Ask HN: Is Meteor.js still a thing? by cnp on Saturday November 04, 2017 @08:37PM (#15627577)
This is nice! Thanks for sharing
Re:Ask HN: Is Meteor.js still a thing? by dmak on Saturday November 04, 2017 @01:04PM (#15625898)
I don't really understand RxJS that well, but here is where my understanding is at. RxJS helps with composition and dataloading. On a theorectical level, isn't it ideal to have Redux used with RxJS? How do you do global state management with RxJS?
Re:Ask HN: Is Meteor.js still a thing? by Blixs on Saturday November 04, 2017 @01:26PM (#15626007)
Well, RxJS helps with pushing data around in general. It doesn't care much if it's from a local state store, a backend api or something else. So in a way it makes a lot of sense to use it for state management as well. The way we do it is by having a single global state store (like redux) with one incoming RxJS stream for writing to that store, and one outgoing stream that emits the latest snapshot of the store whenever a change is made to it. A component can then subscribe to that stream and filter it so it only gets an emitted value when the data it cares about changes. And because there's only one incoming and one outgoing stream it's very easy to debug and see what's going on in the app, making it very predictable and transparent. Also, like I said before: almost no boilerplate code at all!
Re:Ask HN: Is Meteor.js still a thing? by n2solutions on Friday November 10, 2017 @03:18PM (#15672608)
Hi, do you know of any docs / blogs that describe how to build what you have built? it sounds amazing but I don't know where to begin. do you write to the data store with some key / value pair, and subscribe to data by the key so you get back what you want when it changes?
Re:Ask HN: Is Meteor.js still a thing? by davidjnelson on Sunday November 05, 2017 @09:45PM (#15633172)
That's a really clean sounding architecture. Any particular issues?
Re:Ask HN: Is Meteor.js still a thing? by lauritzsh on Saturday November 04, 2017 @03:06PM (#15626399)
The official Redux documentation [0] mentions using RxJS with Redux. According to the docs they work great together but you might not need Redux with RxJS.

I haven't come across a project using only React and RxJS though. There is redux-observable [1] if you haven't seen yet that combines Redux and RxJS.

[0]: http://redux.js.org/docs/introduction/PriorArt.html#rxjs

[1]: https://github.com/redux-observable/redux-observable

Re:Ask HN: Is Meteor.js still a thing? by agnivade on Sunday November 05, 2017 @01:02PM (#15630643)
We have been using VueJS. Loving its fully packaged ecosystem of vue-router, vuex. The EventBus + vuex layer takes care of all state management and data subscriptions.
Re:Ask HN: Is Meteor.js still a thing? by rco8786 on Sunday November 05, 2017 @01:21PM (#15630751)
Sounds interesting, is there some code I can look at or a blog post or something?