Join this channel to get access to perks: / @danielbergholz Check my website: bergdaniel.com.br/ Learn Elixir + Phoenix for free on TechSchool: techschool.dev/
Please note that I'm not an Elixir expert by any means, I'm still learning the language and just wanted to show how cool it looks and a couple of similarities with React
Thank you for explaination! I know the basics of Elixir, but Liveview real-world examples are very helpful for me! Does your project open for contribution?😊
Nice video! I agree that Liveview feels a lot like React. Assigning values to socket feels a bit like using setState. The event driven model also feels familiar if you have worked with Redux or similar. It's going to be interesting to see if more JS devs start migrating to frameworks like Phoneix, Rails, Laravel. Their frontend story is starting to looking very compelling after years of churn in the React world.
So if I got this straight the "rich" part of the UI is made by communicating via socket with the backend, correct? There is one framework that does the same which is blazor, you can write C# instead of javascript, but you still have interoperability with javascript if you need to. Really nice video Daniel
If i understand well: 1. The form is triggering a POST request with the params as the request body. 2. The handle_event "redirects" to to the same url we're in but with the search params as url query params built through the build_url function. 3. The new query params are parsed by the handle_params function applying the search filters, delivering the updated view
Yes! Just one small correction, all the communication between client and server are happening in a web socket connection that was established in the first render. There is no HTTP POST
Valeu Daniel, sou de clojure to indo pro elixir por framework/produtividade e a promessa do LiveView que pode empurrar a decisão de front typescript bem mais pra frente. hopefully never :)
E eu que uso react e typescript no meu dia a dia posso dizer com confiança que o LiveView é um equivalente sinistro, até melhor que o react em outras áreas como escalabilidade
"CSSex" misspealing is so awesome!😅 Pipe |> is not weird, it's fantastic! I write React code in functional manner and miss pipe so much. It's perfect to avoid nesting functions on the language level.