News for hackers. Stuff that matters.
Re:Ask HN: What is your favorite front end state management ... by frompdx on Sunday December 25, 2022 @04:15PM (#34131365)
My personal favorite is re-frame for ClojureScript. I have used it to build things like a LaTeX editor with live preview, electron app frontends, and web-apps. There are wrappers like Kee-frame that extend re-frame by linking the URLs query to the current state, making it possible for users to easily share URLs to different states of a single page app.

The cons are:

- A fair amount of work to make changes to the state side-effect free, but the documentation has a good tutorial on how to approach this.

- It's for ClojureScript, so it's a non-starter for organizations that will not consider anything outside of the mainstream.

I have also used Elm. If I recall correctly, Elm's state management paradigm was inspired by re-frame. I found writing JSON decoders in Elm to be demoralizing and tedious. Since the creator of the language was vehemently opposed to providing any real JSON support I decided to move to ClojureScript.

Re:Ask HN: What is your favorite front end state management ... by ogoparootbbo on Tuesday December 27, 2022 @08:39AM (#34148474)
> Elm's state management paradigm was inspired by re-frame

Nope, it's the other way around

Re:Ask HN: What is your favorite front end state management ... by frompdx on Thursday December 29, 2022 @09:26PM (#34181045)

  Designed in late 2014, it slightly pre-dates the official Elm Architecture, although thankfully we picked up foldp ideas from early Elm games
https://day8.github.io/re-frame/re-frame/#why-should-you-car...
Re:Ask HN: What is your favorite front end state management ... by ogoparootbbo on Friday December 30, 2022 @04:28AM (#34183441)
stated chronology doesn't imply inspiration