/books/programming-phoenix-liveview
Active Threads:
Most Active This Week
Most Active This Month
Most Active This Year
![norbu09](https://forum.devtalk.com/user_avatar/forum.devtalk.com/norbu09/120/4949_2.png)
I keep suggesting this book to people that want to learn Phoenix but never actually went through it myself. Today i picked the latest ver...
New
![arcanemachine](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
I would like to share my thoughts on working through chapter 10 (‘Test Your Live Views’):
Because I worked through the previous exerci...
New
![ghenry](https://forum.devtalk.com/user_avatar/forum.devtalk.com/ghenry/120/4533_2.png)
Please can we have this section added rather than:
Our app doesn’t currently have a concept of “admin” users, and we’ll leave building ...
New
![deevil](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Could you please add a section on dynamically adding/removing one-to-many relationships on a form? Eg: Product and ProductAttribute
New
![shaolang](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Code snippet on page 138 contains a helper function assign_form/2 that isn’t used within the snippet itself; it’s used by the handle_even...
New
![arcanemachine](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Page 171 introduces the usage of an operator used in Ecto queries used to interpolate values. As explained by this Stack Overflow answer,...
New
![jshprentz](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jshprentz/120/5389_2.png)
Before creating the pento database, the book instructs,
First, make sure you have Postgres installed and running on localhost, accessib...
New
![jshprentz](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jshprentz/120/5389_2.png)
The code example allows a year of birth to fall from 1900 through 2022:
|> validate_inclusion(:year_of_birth, 1900..2022)
The book p...
New
![jshprentz](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jshprentz/120/5389_2.png)
Page 191 shows two screenshots of helpful warning messages about faulty calls to function components. The book explains:
The Elixir Lan...
New
![jshprentz](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jshprentz/120/5389_2.png)
After showing and demonstrating code for demographic queries, the book looks ahead:
Now let’s apply the same approach to our product ra...
New
![roganjoshua](https://forum.devtalk.com/user_avatar/forum.devtalk.com/roganjoshua/120/5471_2.png)
I think a section on managing related data, similar to the Programming Phoenix and where the best way and place to do that would be very ...
New
![jshprentz](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jshprentz/120/5389_2.png)
In “Examine the Generated Code,” the book explains that mix phx.gen.live uses templates in deps/phoenix/priv/templates/phx.gen.live to ge...
New
![shaolang](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
The bullet points in PentoWeb.GameLive.help_page/1 doesn’t follow parallelism. Bullet points 3 and 4 are the ones breaking parallelism.
...
New
![dev-rroslan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/dev-rroslan/120/5537_2.png)
The book describe a Survey app. How can we have an anonymous survey.
Thank you,
New
![enoonan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/enoonan/120/6103_2.png)
The beginning of the “Use the Component” section instructs readers:
Alias the component in SurveyLive by adding this line to the top you...
New
Most Active Last Three Years
![asibbald](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
In this - and subsequent - “Give it a try” sections, it would be very useful to have the answers, both to confirm whether we got it right...
New
![almirsarajcic](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Updating a product in the list is done this way in the book
def handle_rating_created(
%{assigns: %{products: products}} = socket, updat...
New
![almirsarajcic](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Forms on both pages contain this code user_id in hidden input field:
<%= hidden_input f, :user_id %>
There could be beginners rea...
New
![krystofrezac](https://forum.devtalk.com/user_avatar/forum.devtalk.com/krystofrezac/120/2722_2.png)
The book uses this code in the age group filter:
<form phx-change="age_group_filter" phx-target="<%= @myself%>&q...
New
![almirsarajcic](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Drawing is done using stateless components that exist in separate modules. For example:
# lib/pento_web/live/pento/board.ex
def render(a...
New
![hKedia](https://forum.devtalk.com/user_avatar/forum.devtalk.com/hKedia/120/4037_2.png)
The LiveView Layers: The Modal Component
The code generated using the mix phx.gen.live Accounts User users name:string is very different...
New
![torifukukaiou](https://forum.devtalk.com/user_avatar/forum.devtalk.com/torifukukaiou/120/2497_2.png)
Use Schemaless Changesets in LiveView - The Promo Live View
forms/pento/pento_web/live/promo_live.html.leex
(B5) <%= text_input f, :...
New
![iclight](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Please remove all of the “dive”, “deep dive” from the book. Using overused business jargon is a bad taste in my opinion. It creates a str...
New
![torifukukaiou](https://forum.devtalk.com/user_avatar/forum.devtalk.com/torifukukaiou/120/2497_2.png)
B8
defmodule PentoWeb.WrongLive do
use Phoenix.LiveView, layout: {PentoWeb.LayoutView, "live.html"}
Suggestion
defmodule P...
New
![gorkaio](https://forum.devtalk.com/user_avatar/forum.devtalk.com/gorkaio/120/4956_2.png)
I would suggest recommending resetting ecto in test environment before running the tests. I was faced with
** (Postgrex.Error) ERROR 42...
New
![julngomz](https://forum.devtalk.com/user_avatar/forum.devtalk.com/julngomz/120/3070_2.png)
Hello,
In chapter 10, Testing Your Live Views, the provided code is confusing. (Or I misread this passage)
Example Code
On page 295, w...
New
![almirsarajcic](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
The book contains this code
def assign_age_group_filter(%{assigns: %{age_group_filter: age_group_filter}} = socket) do
assign(socket, ...
New
![arcanemachine](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
On page 138, :timer.sleep(1000) is used in the server-side code to simulate latency. This would be a great place to introduce the client-...
New
![IdiosApps](https://forum.devtalk.com/user_avatar/forum.devtalk.com/IdiosApps/120/4371_2.png)
I have a suggestion: in the source code .zip file, could there be some .exs files of all commands to run in the terminal that chapter?
C...
New
![johnchampagne](https://forum.devtalk.com/user_avatar/forum.devtalk.com/johnchampagne/120/4006_2.png)
Let’s add a few functions to the core in product/query.ex . First, make sure you alias Pento.Accounts.User and Pento.Survey.Demographic a...
New
Book Info
Publisher:
Pragmatic Bookshelf
Are you this book's author? To be notified of all posts made about it, sign up an account then click here, then select 'watching' from the bell icon in the top right corner.
Get money off!
![](/assets/discounts/logo-pragprog-e2f9c555cf054b1bd6bf9875d757a13d9eb4abb8313ffa439feabaf3ed463947.png)
The Pragmatic Bookshelf
35% off any eBook
Simply use coupon code "devtalk.com" at checkout. See full details here.