5 ms·
Redux's initial release was 2 years after React... https://en.wikipedia.org/wiki/Redux_(JavaScript_library) https://en.wikipedia.org/wiki/Redux_(JavaScript_lib
by elliotec 8y ago
Redux's initial release was 2 years after React...
https://en.wikipedia.org/wiki/Redux_(JavaScript_library) https://en.wikipedia.org/wiki/Redux_(JavaScript_library)
https://en.wikipedia.org/wiki/React_(JavaScript_library) https://en.wikipedia.org/wiki/React_(JavaScript_library)
Perhaps you're talking about the Flux architecture? Not the same thing. Care to share the video you mentioned?
- zamalek 8y agoYou're right, it was Flux. I'll have to dig around for it. Edit: https://www.youtube.com/watch?v=nYkdrAPrdcw https://www.youtube.com/watch?v=nYkdrAPrdcw
- elliotec 8y agoThanks for the follow up!
- minism 8y agoOh wow, I remember watching that, it's crazy to revisit that talk after so many years. Redux and Flow are somehow branded as alternatives to MVC, when they are precisely MVC (store=model, dispatcher/reducer=controller, etc). It seems that Facebook (and many others) implemented MVC very poorly and pretended to abandon it instead of admitting they just did it better on the next attempt. If anything, the success of redux simply reinforces the fact that MVC is a very useful pattern for UI applications. But, it bothers me that newer developers might be persuaded by the anti-MVC branding.
- mpweiher 8y agoSo glad I am not the only one! What I found interesting was that the original developer(s) of react.js seems a lot more up-front about this: https://omny.fm/shows/future-of-coding/1-1-how-reactjs-was-created-with-pete-hunt https://omny.fm/shows/future-of-coding/1-1-how-reactjs-was-c... Of course, the whole idea of, in-theory, re-creating the UI at every refresh cycle is not part of MVC, so that is new and interesting. Considering all the work that has to be done to undo that abstraction (as it doesn't really match reality), I am not sure how useful it actually is. https://blog.metaobject.com/2018/12/uis-are-not-pure-functions-of-model.html https://blog.metaobject.com/2018/12/uis-are-not-pure-functio...
- underwater 8y agoFlux dispatcher are not really like controllers. They don't allow for any business logic. The stores are like combined controller/models, though. A key design feature of Flux is that many unrelated (or related) stores can respond an event, and that there is a defined lifecycle for handling events. I don't believe those really map to MVC.