Elm for Redux Devs Guide


#1

Happy New Year all! I wrote a beginners guide to Elm for Redux Devs. I hope it’s useful! Please share with your Redux buddies :slightly_smiling_face: I’ll be writing more in the series, so feedback is appreciated.


#2

This is great! :slight_smile:

It’s really clear and well written, and does a good job of highlighting the differences. I’m glad you addressed the React community’s “Redux is an anti-pattern” sentiment - you’re clearly familiar with what’s going on in both communities :ok_hand:

One small bit of feedback: in the Redux examples state is a number, but in the Elm examples model is a record containing a count attribute. This feels a little inconsistent - perhaps the Elm model should simply be of type Int, or alternatively the Redux state should be an object? The current approach necessitates using record-update syntax in the Elm code (but object spreading isn’t needed in the equivalent JavaScript). This makes the Elm example look a little more complex than the JavaScript one.


#3

@fizwidget thank you so much, this feedback is very helpful! :+1: And thanks for the kind words, I’m glad you found it to be clear!

Fantastic point, I’ll iron that out. Thank you for taking the time to share your thoughts!


#4

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.