News for hackers. Stuff that matters.
Re:Build Yourself a Redux by lomnakkus on Friday May 05, 2017 @05:25PM (#14276953)
Yeah, I'm pretty amazed at the amount of attention that a simple "fold"[1] gets in JS-land.

Yeah, OK, Redux (etc.) is also a little bit of a pattern for sort-of-algebraic data types, but really... I prefer using a language that actually supports algebraic data types natively like Scala.js, Reason, Bucklescript, js_of_ocaml or GHCJS.

I appreciate that these may not be an option for everyone, but at least one of them should be an option for the vast majority of current frontend developers.

[1] Well, technically I guess it would be a foldM?

Re:Build Yourself a Redux by shados on Friday May 05, 2017 @10:49PM (#14278414)
Yeah, it's pretty trivial to rebuild Redux with a couple of functional building blocks, or my personal favorite, with RxJS and the scan operator.

I'm surprised that didn't pick up more yet.

Re:Build Yourself a Redux by twfarland on Saturday May 06, 2017 @12:18AM (#14278646)
typescript makes it tolerable, if well-used