dwyl / learn-elm

:rainbow: discover the beautiful programming language that makes front-end web apps a joy to build and maintain!
https://github.com/dwyl/learn-elm
477 stars 42 forks source link

Elm vs React/Redux? #22

Open naazy opened 7 years ago

naazy commented 7 years ago

Elm

Pros There are lots of very positive blog posts about Elm e.g. here

In this blog post, the author explains

The strictness of the type system eliminates an enormous amount — if not the vast majority of — mundane errors. Furthermore, refactoring is incredibly nice. Daniel Bachler had a relatable talk in BerlinJS not long ago: Fearless refactoring with Elm. The refactoring experience most of the time is: Make changes, any changes. The compiler tells what you missed. Go to 1. When the code compiles, it will work. There will not be any crashes. The only things that can go wrong are application logic. Application logic is what we should be focused on at all times, but many languages don’t let us do that. And since Elm enforces immutability and functional style, it is in fact very hard to cause regressions that you don’t know about. I find that when coding Elm, I get to spend most of my time thinking about the actual problem that I am solving. Whereas when coding JavaScript, I spend my time debugging and only every once in a while get to think about the actual problem.

Cons

React/Redux

Pros

Cons

@dwyl/ateam Please add your thoughts 👍

nelsonic commented 6 years ago

Excellent talk comparing the two by Evan (creator of Elm): https://youtu.be/jl1tGiUiTtI image

SimonLab commented 6 years ago

:+1: :bee: