3 ms·
Elixir's/Phoenix' LiveView (and clones/similar approaches). It's been discussed plenty on HN, so I don't think I need to elaborate too much. But I'll just say t
by mercer 6y ago
Elixir's/Phoenix' LiveView (and clones/similar approaches). It's been discussed plenty on HN, so I don't think I need to elaborate too much. But I'll just say that as I'm using it in more and more new projects and adding it piecemeal to existing ones, I'm constantly amazed by how much complexity just disappears, and how pleasant it all is to work with.
I do feel that it'll take another year or two for all of it to 'mature', though.
For one, I'm not a big fan of how it still relies on 'old-fashioned' templating, but I've been looking into Surface [1] as a solution to that (it uses a more React-like component-based approach).
I also find that there's often confusion about best practices. About what goes where exactly, asking myself whether to keep state in the top-level LiveView is best, or perhaps too much based on the old client-side React/Redux paradigm and less necessary now that fetching data is a server-side-only DB call away (and using PubSub for any inter-LiveView communication).
But even with some of these 'issues', it's probably the most fun I've had building interactive web apps!
[1]: http://surface-demo.msaraiva.io/getting_started http://surface-demo.msaraiva.io/getting_started
- AhtiK 6y agoCan you name a few of Phoenix LiveView clones/similar approaches in other languages that are actively developed and worth looking into?
- tducasse 6y agoHotwire, with Ruby on rails
- digianarchist 6y agoI've got my eye on that. Hopefully it works with AnyCable.
- sfusato 6y agoHere's a Github repository listing Phoenix LiveView workalikes for different languages and frameworks: https://github.com/dbohdan/liveviews https://github.com/dbohdan/liveviews ps: The BEAM is what makes LiveView so great, do not expect the same in the other environments.
- rahimnathwani 6y agoIs the last sentence in your comment about developer experience, functionality, performance/scalability or something else?
- sfusato 6y agoFunctionality, performance & scalability.
- cholmon 6y agohttps://laravel-livewire.com/ https://laravel-livewire.com/ Implementation in PHP
- mercer 6y agoI hear LiveWire for Laravel is pretty decent, even if it's not quite the same. I quite liked this Elixir podcast episode where they interview the creator of LiveWire (and Alpine.js): https://thinkingelixir.com/podcast-episodes/020-liveview-v-livewire-alpine-js-with-caleb-porzio/ https://thinkingelixir.com/podcast-episodes/020-liveview-v-l...
- jitl 6y agoReact itself is now approaching the Live View server-rendering space: https://reactjs.org/blog/2020/12/21/data-fetching-with-react-server-components.html https://reactjs.org/blog/2020/12/21/data-fetching-with-react...