JohnSmall
Programming Phoenix LiveView: Chapter 9
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.
First Post!
owain68
@JohnSmall I agree that there is a lot of differences and certainly lots of places where scope is not included in the function calls for queries. There is a lot of work to bring it up to date from B0.14. However, I am finding it quite helpful to figure out the errors (too many to file Errata) as it gives you some extra thinking to do rather than just read. Fun debugging. Back in the old days, Meccano kits had construction instructions with deliberate mistakes for us budding engineers!
Popular Pragmatic Bookshelf topics
Modern front-end development for Rails, second edition - Struggling to get the first chapter to work
Other popular topics
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /python
- /js
- /rails
- /security
- /go
- /swift
- /vim
- /clojure
- /emacs
- /java
- /haskell
- /svelte
- /onivim
- /typescript
- /kotlin
- /crystal
- /c-plus-plus
- /tailwind
- /react
- /gleam
- /ocaml
- /flutter
- /elm
- /vscode
- /ash
- /html
- /opensuse
- /zig
- /centos
- /deepseek
- /php
- /scala
- /react-native
- /lisp
- /sublime-text
- /textmate
- /nixos
- /debian
- /agda
- /django
- /deno
- /kubuntu
- /arch-linux
- /nodejs
- /ubuntu
- /revery
- /spring
- /manjaro
- /lua
- /diversity
- /julia
- /markdown
- /v








