News for hackers. Stuff that matters.
Re:If Not SPAs, What? by mrh0057 on Wednesday October 28, 2020 @11:59PM (#24927043)
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.
Re:If Not SPAs, What? by will_pseudonym on Thursday October 29, 2020 @12:09AM (#24927096)
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

Re:If Not SPAs, What? by tartoran on Thursday October 29, 2020 @02:01AM (#24927722)
In CS it also refers to Abstract Data Types
Re:If Not SPAs, What? by will_pseudonym on Thursday October 29, 2020 @02:57AM (#24927992)
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...

Re:If Not SPAs, What? by d13 on Friday October 30, 2020 @02:58AM (#24939820)
Yup, it’s beautiful in Elm and makes no sense in JavaScript, which doesn’t need it.