DEV Community

Discussion on: What are you hacking on this week?

Collapse
 
jvarness profile image
Jake Varness

React'ing and Redux'ing. Still not sure if I'm doing it right:

github.com/jvarness/react-hello

Collapse
 
pancy profile image
Pan Chasinga

I have worked with Elm. Then when I got into React, I found Redux really complicate because it's hard not to compare to Elm.

Collapse
 
jvarness profile image
Jake Varness

I have written Elm before, and I drew a LOT of comparisons between Elm's core libraries and React+Redux. While I enjoy using React+Redux and Angular 4, there exists a certain elegance and simplicity that Elm offers that the other two options don't.

That, and the benchmarks speak for themselves. Compiled Elm code outperforms Angular and React.

Thread Thread
 
pancy profile image
Pan Chasinga

It's a shame Elm isn't in JavaScript. It couldn't have been. Most elegance that comes with Elm goes out the window without algebraic data type and immutable values (one could argue using Flow, Typescript, Immutable.js, and Redux but they're all just hacks to make JavaScript what it isn't).