/books/programming-phoenix-liveview
Active Threads:
Most Active This Week
Most Active This Month
Most Active This Year
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
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
I would like to share my thoughts on working through chapter 10 (‘Test Your Live Views’):
Because I worked through the previous exerci...
New
Could you please add a section on dynamically adding/removing one-to-many relationships on a form? Eg: Product and ProductAttribute
New
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
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
Page 171 introduces the usage of an operator used in Ecto queries used to interpolate values. As explained by this Stack Overflow answer,...
New
Before creating the pento database, the book instructs,
First, make sure you have Postgres installed and running on localhost, accessib...
New
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
Page 191 shows two screenshots of helpful warning messages about faulty calls to function components. The book explains:
The Elixir Lan...
New
After showing and demonstrating code for demographic queries, the book looks ahead:
Now let’s apply the same approach to our product ra...
New
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
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
The bullet points in PentoWeb.GameLive.help_page/1 doesn’t follow parallelism. Bullet points 3 and 4 are the ones breaking parallelism.
...
New
The book describe a Survey app. How can we have an anonymous survey.
Thank you,
New
Most Active Last Three Years
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
Updating a product in the list is done this way in the book
def handle_rating_created(
%{assigns: %{products: products}} = socket, updat...
New
Forms on both pages contain this code user_id in hidden input field:
<%= hidden_input f, :user_id %>
There could be beginners rea...
New
The book uses this code in the age group filter:
<form phx-change="age_group_filter" phx-target="<%= @myself%>&q...
New
Drawing is done using stateless components that exist in separate modules. For example:
# lib/pento_web/live/pento/board.ex
def render(a...
New
The LiveView Layers: The Modal Component
The code generated using the mix phx.gen.live Accounts User users name:string is very different...
New
Hi,
May I suggest you update Surface to 0.5.0 and your examples? It would be a shame to release the book using deprecated syntax.
New
Use Schemaless Changesets in LiveView - The Promo Live View
forms/pento/pento_web/live/promo_live.html.leex
(B5) <%= text_input f, :...
New
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
B8
defmodule PentoWeb.WrongLive do
use Phoenix.LiveView, layout: {PentoWeb.LayoutView, "live.html"}
Suggestion
defmodule P...
New
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
The book contains this code
def assign_age_group_filter(%{assigns: %{age_group_filter: age_group_filter}} = socket) do
assign(socket, ...
New
I would suggest recommending resetting ecto in test environment before running the tests. I was faced with
** (Postgrex.Error) ERROR 42...
New
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
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!
The Pragmatic Bookshelf
35% off any eBook
Simply use coupon code "devtalk.com" at checkout. See full details here.