CharlesIrvine
How to get started with Phoenix LiveView 1.7?
I have been trying to learn Phoenix LiveView for a couple of months now. The best learning resource I’ve found so far is the video course from “The Pragmatic Studio”. Unfortunately, this course is fairly out-of-date, especially now that Phoenix 1.7 and LiveView 0.18 are out (“almost” in the case of Phoenix 1.7). The authors, Mike and Nicole, are busy creating an up-to-date refresh, but it might be some time (I’m afraid) before the update is available.
So, this leaves folks with only the latest official Phoenix and LiveView documentation. Maybe I just haven’t figured out the organization of this documentation yet, but so far it seems to me that it isn’t very useful for people just getting started with Phoenix LiveView.
IMHO the official documentation really needs and deserves a much more extensive “getting started” user guide, especially for LiveView. For me at least, it seems that LiveView is now an integral and essential component of Phoenix. Hence, why not include the basics of LiveView in a comprehensive Phoenix+LiveView “getting started” guide?
I apologize that this post is a little negative. I am very enthusiastic regarding Elixir+Phoenix+LiveView and intend to use these great tools to rewrite my existing commercial web application, which is currently written with Elixir+Angular.
Marked As Solved
josevalim
One of the good news with Phoenix v1.7 is that HEEx and function components are the building block for everything HTML related in Phoenix, with or without LiveView, and the guides have been updated to teach them. So while we don’t talk about LiveView (yet), function components get good coverage and that will already take you half way into learning how LiveView works!
Also Liked
josevalim
Quite the opposite!
Most frameworks would have likely called this version 2.0 but we kept it as Phoenix 1.7 exactly because everything is still backwards compatible. Which other major web frameworks out there have not pushed breaking changes in 7.5 years?
Of course, Phoenix LiveView is before 1.0, so it doesn’t reap the benefits of major versioning yet, but even then we have been careful with deprecations while exploring a programming model with plenty of new ideas.
And Phoenix v1.7 is exactly the maturing of the ideas from the last 3 years. It is a bit early to expect plenty of learning materials while it is still a release candidate. And that would be true for most technologies. So just be a bit patient and those materials will come out.
Gumi
Yeah, it’s a weird combination of lots of information being available but it all feeling pretty useless when you are new. People often just link the Hexdocs as if people hadn’t already found them and the Hexdocs only ever feel useful when you already know what the process you’re trying to is and just need a refresher. For first time learning they are pretty confusing as they don’t even tell you which location the code snippets should be in or what other locations need to be modified.
I started learning a few months ago and basically learnt everything from reverse engineering either the mix.phx.gen options, or from the few github projects I could find…and by literally typing random things in until something works. I firmly believe the monkey’s and typewriters saying is true based on the number of times I’ve managed to just luckily guess how things work in Phoenix because I couldn’t find the information.
On the plus side I only started learning Live a couple of days ago and managed to do the same things it took me a month to do using Controllers because I have a much better understanding of how everything connects together now.
LostKobrakai
This is imo the biggest hurdle for any educational material. LV has been a moving target for quite a while and I’m not sure if it’s yet at a point of slowing down. Sure it would be nice to have all the educational material available, but these things take time and effort – even the existing pieces do/did. It be great if someone stepped up to take this to the in depth level, but those efforts are hard to justify if things might be out of date in 6-8 month. In the best case it’s just stale content in the worst it’s actively confusing people, because different sources talk about different things.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









