Programming Phoenix LiveView (PragProg)

Well, I worked my way through the broken tests. It’s pretty simple once you understand where things are.

What I’m now finding is that the core components are very very different in 1.8.0. For example .simple_form no longer exists and has been replaced with .form. But .form is not defined in components/core_components.ex , it’s in Phoenix in the deps directory.

There are so many changes in 1.8.x from 1.7.x that the authors are going to have a lot of work to do when updating for 1.8

I’m not complaining though. Having to work out how to fix issues is how you learn. I just have to read the code carefully when I find something from the book that doesn’t work in 1.8

4 Likes

Mistake on pp307/308 in beta 14, I think: the handle_info and mount sample code are in each other’s locations; swapping the code samples makes the text flow correctly.

2 Likes

It is really worth the wait. I just read pragprog site and they adjusted (published) it to january 2026

Yup. I am also excited for its release.

I’m up as far as Chapter 9 “Your turn”. I’ve extended the presence tracking so that I can display a list of users currently viewing the survey page.

I had to dig in to the structure sent from the Presence module to extract the topic so I could match the topic to different versions of handle_info in order to differentiate a presence_diff from the user_activity topic and the survey_view topic and it made me think that a paragraph could be added to the text describing the full structure that gets send to handle_info.

It’s not described in the documentation though pretty easy to IO.inspect and find out.