jjdeveloper
Re:How Laravel Livewire works
on Wednesday October 13, 2021 @08:17AM (#28851209)
I feel that the simplicity of just building on the server and pushing the updates across the wire is where we are heading. So a lot less double up, with regards needing to write both for the server and client. Validation especially will just need to be written once.
Although I do feel Phoenix Liveview is a better option because they implement sockets.
Also saw this update today they will allow you to trigger javascript on the client without the sever round trip, it's one of the things people get a bit stuck understanding. Generally they think to pop open a modal or menu requires a round trip to the server but really you should be using Alpine.js or similar for such things. This new pending update remove the requirement of needing a framework like Alpine. https://github.com/phoenixframework/phoenix_live_view/pull/1...
Re:Phoenix 1.6.0 Released
on Friday September 24, 2021 @08:16PM (#28649201)
So good to see the progress in the Elixir community. Liveview seems to have got lots of peoples attention.
Re:How we got to LiveView
on Thursday September 23, 2021 @08:35AM (#28628255)
The round trip is very quick, websocket with a tiny payload in most cases.
This video does a great job of discussing the advantages (skip forward to 6:50) https://youtu.be/8xJzHq8ru0M
Re:How we got to LiveView
on Thursday September 23, 2021 @08:16AM (#28628088)
If you want to save state for the counter to the server you would do a round trip. Otherwise you’d use some light weight JS lib, most popular one for simple interactions is Alpine.js.
So simple ui JavaScript use Alpine and something like form validation and showing errors will do a round trip and save you writing validation twice (on the client and on the server).
Re:Pollen – A library of CSS variables inspired by TailwindCSS
on Saturday September 04, 2021 @07:21PM (#28420297)
Tailwind gives you inline media queries and the confidence that your css doesn’t impact other elements on your site. Also you don’t need to think up class names.
CSS variables are great, I just don’t really understand the value, I guess it gives you a bit of constraints for consistent styling.
Phoenix 1.6 released removes the need for Node and Webpack
Spotify Building with Elixir/Liveview
Elixir's Phoenix framework removing the need to install node
Re:Second-guessing the modern web (2020)
on Thursday May 27, 2021 @11:55PM (#27311575)
I really like the way that Phoenix Liveview is trying to solve for this, trying to find the sweet spot in the middle of building multipage apps and SPAs. Great talk about it from the developer here https://youtu.be/8xJzHq8ru0M?t=409