News for hackers. Stuff that matters.
Re:Practical Front-End Architecture by Weebs on Tuesday September 21, 2021 @11:11AM (#28605814)
I think if we're talking about concepts at the level of OOP, we'd be comparing MVU and virtual DOMs rather than React. I learned to write UIs in F# through Elmish (used by Bolero), which was inspired by (unsurprisingly) Elm. React, also being inspired by Elm, was simple enough to transition to once I was comfortable in Bolero. It was basically MVU with components that have local state and lifetime function callbacks. I ended up tripping over TypeScript/JS more often than React

At the same time, I do know what you mean about the walled garden ecosystems. It seems unfortunate that every framework I pick up, I'm learning a new set of components everyone uses for things like virtualization. On the backend it feels less common to be using a library that's only relevant to your stack, and when there's a killer library in another language, you don't need to move mountains to use it.

Re:Practical Front-End Architecture by iaml on Tuesday September 21, 2021 @12:20PM (#28606618)
> React, also being inspired by Elm

This is news to me, are you sure about that? Wasn't react released earlier than elm?

Re:Practical Front-End Architecture by Weebs on Tuesday September 21, 2021 @02:52PM (#28608441)
I believe you're right, I meant to say React's Hooks, but now I can't find a reference to that so maybe I misremembered. I wasn't interested in previous versions of React after going over the basics in the docs a few times, but after the introduction of hooks I found it more appealing.
Re:Practical Front-End Architecture by insonifi on Tuesday September 21, 2021 @04:15PM (#28609395)
I think you actually meant Redux, which as an implementation of the Flux architecture was inspired by Elm, as per the author [1].

[1] https://egghead.io/podcasts/dan-abramov-co-author-of-redux

Re:Practical Front-End Architecture by iaml on Wednesday September 22, 2021 @09:23AM (#28616010)
This is neat, didn't know about elm's influence on redux.