Hacker News new | past | comments | ask | show | jobs | submit login

Redux is not idiomatic JavaScript though. It’s trying to make JavaScript immutable and have adt which it doesn’t. If you use elm, reasonml, rescript, etc this pattern is a lot easier to implement than with JavaScript.



I wasn't readily familiar with the acronym ADT. It's "Algebraic Data Types" for anyone else in the same boat.

https://en.wikipedia.org/wiki/Algebraic_data_type


In CS it also refers to Abstract Data Types


Ah, good call. Thank you! Here's a reference I found that explains the differences between those two concepts, as applied to Scala:

https://stackoverflow.com/questions/42833270/what-is-the-dif...


Yup, it’s beautiful in Elm and makes no sense in JavaScript, which doesn’t need it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: