Hacker News new | ask | show | jobs
by Huh1337 1341 days ago
Elm was inspired by Flux/Redux, not the other way around.
2 comments

Sorry no, the redux docs specifically mention Elm as an inspiration and previous art https://redux.js.org/understanding/history-and-design/prior-...

Flux was before, but it’s not about application as a function

Hmm, 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!
Neither 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.