I have recently been exploring creating web apps in Elm and found it to be a breath of fresh air compared to the usual React/Redux projects I have ...
For further actions, you may consider blocking this person and/or reporting abuse
Would it be more fair to compare Elm to ReasonML?
I don't think it would be more or less fair. The point was to show the similarities and how they are not much different, in order to get more people interested in it. If I compared Elm to Reason then not many people would relate to it.
Absolutely. Both are statically typed languages which compile down to JS (strictly speaking, not ReasonML, but Bucklescript) with a sound type system (other than typescript).
But imho Reason is easier to learn for JS developers, especially React developers, because of syntax similarities. Also, interop (which you probably will need in a bigger project) is better in Reason.
Elm is a cleaner approach though, and is very fitting for smaller, self-contained projects.
Good idea !!
Great article! Best comparison Ive seen so far. Elm looks really clean.
Thanks!
Sweet article!
I wonder, since Elm has a single view is the re-rendering when models change as efficient as React?
Will definitely try Elm out! I love the FP syntax!
Thanks! And apparently it's more efficient in rendering, than React, according to some benchmarks
Hi Jason.
Could you show a solution for thunks replacement (calling a bunch of actions after one action etc)?
You wouldn't necessarily want to call more than one action for any effect. Ideally you would have one message handler for one side effect and if you wanted to combine 2 or more together you would pipe them into one new message.
model |> update Something |> update Something2
Great post
If you like a video tutorial about this and more Elm content you may check udemy.com/course/elm-the-complete-...