APNguyen

APNguyen

Programming Phoenix Liveview: v1.0 feedback

I just signed up for the forum to discuss the 1.0 version.

I don’t want to be a downer only a third of the way through the book, but I think so far working through it with Phoenix 1.8.5, a lot of the writing doesn’t seem to be fully updated to match the current generators. It seems more like certain paragraphs were added to cover changes, but the main body of writing is still referring to an older design for LV.

Most Liked

APNguyen

APNguyen

Yes. It’s page 114 through 133. Technically, paragraphs were added to acknowledge 1.8 updates, but there’s still parts on push_patch that aren’t reflected in the current generator anymore.

EDIT: Reading forward, I see a section telling me to use .simple_form which is no longer in core components.

bfar

bfar

Another example would be in Chapter 3 on p84 the changeset example showing product.ex requires a user_scope to be passed in but the example in “Test Drive the Schema” showing the usage within IEX does not show the establishment of the session nor includes it in the creation of the sample changeset shown on p85.

kjoehlers

kjoehlers

There are actually a number of errors in the the ‘Final Edition’ most are pretty easy to get around but I have just started in Chapter 3 and there seems to be a mix both of generator versions and actual data used. Using Phoenix 1.8.5 there appear to be are versions of the product table which have a user_id column and versions that don’t. Also when following the steps in the book the resulting functions do not include a changeset/2 the closest is a changeset/3 which referenced the user_scope. This is very frustrating and hopefully will be addressed in a new edition. I tried changing to an earlier version to see if that would resolve the problems and it does to some extent but it results in some aspects of the book, so far, not making sense.

Where Next?

Popular Pragmatic Bookshelf topics Top

New
jskubick
I think I might have found a problem involving SwitchCompat, thumbTint, and trackTint. As entered, the SwitchCompat changes color to hol...
New
jskubick
I found an issue in Chapter 7 regarding android:backgroundTint vs app:backgroundTint. How to replicate: load chapter-7 from zipfile i...
New
jonmac
The allprojects block listed on page 245 produces the following error when syncing gradle: “org.gradle.api.GradleScriptException: A prob...
New
creminology
Skimming ahead, much of the following is explained in Chapter 3, but new readers (like me!) will hit a roadblock in Chapter 2 with their ...
New
s2k
Hi all, currently I wonder how the Tailwind colours work (or don’t work). For example, in app/views/layouts/application.html.erb I have...
New
rainforest
Hi, I’ve got a question about the implementation of PubSub when using a Phoenix.Socket.Transport behaviour rather than channels. Before ...
New
tkhobbes
After some hassle, I was able to finally run bin/setup, now I have started the rails server but I get this error message right when I vis...
New
SlowburnAZ
Getting an error when installing the dependencies at the start of this chapter: could not compile dependency :exla, "mix compile" failed...
New
dachristenson
I’ve got to the end of Ch. 11, and the app runs, with all tabs displaying what they should – at first. After switching around between St...
New

Other popular topics Top

AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
PragmaticBookshelf
Create efficient, elegant software tests in pytest, Python's most powerful testing framework. Brian Okken @brianokken Edited by Kat...
New
rustkas
Intensively researching Erlang books and additional resources on it, I have found that the topic of using Regular Expressions is either c...
New
New
husaindevelop
Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New
DevotionGeo
I have always used antique keyboards like Cherry MX 1800 or Cherry MX 8100 and almost always have modified the switches in some way, like...
New
PragmaticBookshelf
Build modern server-driven web applications using htmx. Whatever programming language you use, you’ll write less (and cleaner) code. ...
New
CommunityNews
A Brief Review of the Minisforum V3 AMD Tablet. Update: I have created an awesome-minisforum-v3 GitHub repository to list information fo...
New
Fl4m3Ph03n1x
Background Lately I am in a quest to find a good quality TTS ai generation tool to run locally in order to create audio for some videos I...
New
mindriot
Ok, well here are some thoughts and opinions on some of the ergonomic keyboards I have, I guess like mini review of each that I use enoug...
New

Sub Categories: