Re:Electron is flash for the desktop (2016)
by LeoNatan25 on Tuesday April 11, 2017 @12:41PM
(#14089808)
Ah, the wonders of discovering the observer pattern. It's really a life "changer". How did the computer world survive for so many decades without it.
[ Parent
| on HN ]
Re:Electron is flash for the desktop (2016)
by mlsarecmg on Tuesday April 11, 2017 @05:07PM
(#14092453)
Explain? Redux isn't even close to observables in other systems. It's the immutable pattern that's a life changer if anything.
Re:Electron is flash for the desktop (2016)
by Sophistifunk on Tuesday April 11, 2017 @09:18PM
(#14094024)
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.
Re:Electron is flash for the desktop (2016)
by mlsarecmg on Wednesday April 12, 2017 @03:32AM
(#14095562)
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.
Re:Electron is flash for the desktop (2016)
by Sophistifunk on Wednesday April 12, 2017 @08:46AM
(#14097079)
Redux makes every single component check nextProps.foo !== this.props.foo, instead of just having them notified when it changes.
Re:Electron is flash for the desktop (2016)
by mlsarecmg on Wednesday April 19, 2017 @06:43AM
(#14146798)
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.
Re:Electron is flash for the desktop (2016)
by LeoNatan25 on Wednesday April 12, 2017 @06:31AM
(#14096341)
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.