3 ms·
Elm was inspired by Flux/Redux, not the other way around.
by Huh1337 4y ago
Elm was inspired by Flux/Redux, not the other way around.
- iddan 4y agoSorry no, the redux docs specifically mention Elm as an inspiration and previous art https://redux.js.org/understanding/history-and-design/prior-art https://redux.js.org/understanding/history-and-design/prior-... Flux was before, but it’s not about application as a function
- Huh1337 4y agoHmm, you're right, Redux first appeared in 2015 and Elm in 2012. I was early adopter of both (didn't stick with Elm though) but I guess I only noticed Elm once it got popular. Thanks, my mistake!
- dminuoso 4y agoNeither is the case. Elm semantics were originally loosely based on functional reactive programming in the sense of Conal Elliot, as per the thesis of its author. Redux on the other hand is just imperative programming folks rediscovering that a state transition can be described as a pure function S -> S, with all the benefits that come along with it. This is as old as lambda calculus itself. Words like reducer are just red herrings.