Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Explain? Redux isn't even close to observables in other systems. It's the immutable pattern that's a life changer if anything.


Redux and co are still the same pattern fundamentally, it's just that the implementing code is spread throughout your stack, instead of in an "Observable" implementation. That combined with an optimisation allowing identity and state equality to be conflated.


I don't know what you're saying, this is the complete opposite. Redux was made to centralize, because observables are literally spread throughout the stack. The entire logic is combined in composeable containers, later wrapped in a single store. Flux pattern is also completely different in how it works, there's almost no similarity whatsoever.

http://iweave.com/assets/blog/mvc_v_flux.png


Redux makes every single component check nextProps.foo !== this.props.foo, instead of just having them notified when it changes.


That is the whole point of immutable state, and it is very effective because parent props are also notified through shallow checks, while observables have to bubble up and keep track of their relations.

You also seem to agree now that both are completely different.


That's not MVC. That's the MVC Facebook attempts to show in a ridiculous presentation that finally convinced me how much they had to misinform to get these silly concepts any legitimacy.


That is exactly how a .NET WPF application worked, and that's also how MVC communicates in general. The flux pattern is very different from it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: