Optimistic UI and Reactive Programming with Elm
athiemann.net
Optimistic UI and Reactive Programming with Elm
1–10 of 10 posts
Re: Optimistic UI and Reactive Programming with Elm
#2That said I really like the rest of the language.
Re: Optimistic UI and Reactive Programming with Elm
#3The one thing I really like in react is the composability. I haven't seen a mechanism a nice in elm like the virtual dom. It seems like things are much more verbose with one-way signals. That said I really like the rest of the language.
It's not quite clear what you mean, the "view" function of a standard Elm application is a virtual dom, elm.html is implemented on top of the virtual-dom library[0]. If you mean component, as far as I understand in Elm you'd use separate models and sub-functions in separate modules for each concern ("component")[1]. Elm subscribes to the "single point of truth" philosophy[2] so there isn't really a sense of component-local state or lifecycle.
[0] https://github.com/Matt-Esch/virtual-dom
[1] https://gist.github.com/evancz/2b2ba366cae1887fe621#nesting
[2] like Om except more so
Re: Optimistic UI and Reactive Programming with Elm
#4The one thing I really like in react is the composability. I haven't seen a mechanism a nice in elm like the virtual dom. It seems like things are much more verbose with one-way signals. That said I really like the rest of the language.
> I haven't seen a mechanism a nice in elm like the virtual dom. It's not quite clear what you mean, the "view" function of a standard Elm application is a virtual dom, elm.html is implemented on top of the virtual-dom library[0]. If you mean component, as far as I understand in Elm you'd use separate models and sub-functions in separate modules for each concern ("component")[1]. Elm subscribes to the "single point o…
Re: Optimistic UI and Reactive Programming with Elm
#5The one thing I really like in react is the composability. I haven't seen a mechanism a nice in elm like the virtual dom. It seems like things are much more verbose with one-way signals. That said I really like the rest of the language.
Im not familiar with react, and im not quite sure what you mean by that, but elm html is based on virtual-dom...
Re: Optimistic UI and Reactive Programming with Elm
#6The one thing I really like in react is the composability. I haven't seen a mechanism a nice in elm like the virtual dom. It seems like things are much more verbose with one-way signals. That said I really like the rest of the language.
> I haven't seen a mechanism a nice in elm like the virtual dom. It's not quite clear what you mean, the "view" function of a standard Elm application is a virtual dom, elm.html is implemented on top of the virtual-dom library[0]. If you mean component, as far as I understand in Elm you'd use separate models and sub-functions in separate modules for each concern ("component")[1]. Elm subscribes to the "single point o…
Re: Optimistic UI and Reactive Programming with Elm
#7Earlier quoted context omitted.
> I haven't seen a mechanism a nice in elm like the virtual dom. It's not quite clear what you mean, the "view" function of a standard Elm application is a virtual dom, elm.html is implemented on top of the virtual-dom library[0]. If you mean component, as far as I understand in Elm you'd use separate models and sub-functions in separate modules for each concern ("component")[1]. Elm subscribes to the "single point o…
Thanks, that makes it a bit clearer. I really just need to spend some proper time with elm.
Re: Optimistic UI and Reactive Programming with Elm
#8Earlier quoted context omitted.
> I haven't seen a mechanism a nice in elm like the virtual dom. It's not quite clear what you mean, the "view" function of a standard Elm application is a virtual dom, elm.html is implemented on top of the virtual-dom library[0]. If you mean component, as far as I understand in Elm you'd use separate models and sub-functions in separate modules for each concern ("component")[1]. Elm subscribes to the "single point o…
Does it also have a diff mechanism and rerenders on "state" changes?
Re: Optimistic UI and Reactive Programming with Elm
#9The one thing I really like in react is the composability. I haven't seen a mechanism a nice in elm like the virtual dom. It seems like things are much more verbose with one-way signals. That said I really like the rest of the language.
> I haven't seen a mechanism a nice in elm like the virtual dom. It's not quite clear what you mean, the "view" function of a standard Elm application is a virtual dom, elm.html is implemented on top of the virtual-dom library[0]. If you mean component, as far as I understand in Elm you'd use separate models and sub-functions in separate modules for each concern ("component")[1]. Elm subscribes to the "single point o…
[1] https://groups.google.com/forum/?fromgroups#!searchin/elm-di...
[2] https://groups.google.com/forum/?fromgroups#!topic/elm-discu...
Re: Optimistic UI and Reactive Programming with Elm
#10The one thing I really like in react is the composability. I haven't seen a mechanism a nice in elm like the virtual dom. It seems like things are much more verbose with one-way signals. That said I really like the rest of the language.