/books/programming-phoenix-liveview
Active Threads This:
Latest Threads About This Book
The template on page 138 already contains the .simple-form component even though we did not assign a form to the socket yet and will ther...
New
When using phx.gen.live with phoenix 1.7.14 the generated code in index.html.heex uses patch instead of navigate. When looking up the tem...
New
Hi there,
in the book it says the authentication service should be located at ```
lib/pento_web/controllers/user_auth.ex
but for me it...
New
Programming Phoenix LiveView: The code provided at Programming Phoenix LiveView: Interactive Elixir Web Programming Without Writing Any J...
New
Title: Name of book: Programming Phoenix LiveView B9.0: Chapter 12-Define a Skinny GameLive View
These two need to be updated with
lib/...
New
Title: Programming Phoenix LiveView B9.0: Chapter 11-Represent a Shape With Points
Diagram is Wrong
Two pages earlier, there is also a ...
New
Title: Name of book: Programming Phoenix LiveView
Second to last page on Section 10 - Unit Test Test Survey Results State
testing/pento...
New
This needs to be register_users (plural)?
iex(3)> params = %{email: "mercutio@grox.io", password: "R0sesBy0therNames&q...
New
If you check in endpoint.ex
I suggest spelling this out: lib/pento_web/endpoint.ex
New
You may have noticed that Phoenix fetched the dependencies on this list when you ran mix deps.get.
Did I miss something? We haven’t ru...
New
Most Active This Week
Most Active This Month
On page 52, the topic of “Protecting Sensitive Routes” is introduced with this snippet from router.ex:
scope "/", PentoWeb do
...
New
When using phx.gen.live with phoenix 1.7.14 the generated code in index.html.heex uses patch instead of navigate. When looking up the tem...
New
Hi there,
in the book it says the authentication service should be located at ```
lib/pento_web/controllers/user_auth.ex
but for me it...
New
The template on page 138 already contains the .simple-form component even though we did not assign a form to the socket yet and will ther...
New
Most Active This Year
Disclaimer: I hope all of this is accurate, and not the result of some stupid typo I failed to notice. Anyways…
This post comprises 2 is...
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
Title: Programming Phoenix LiveView: P97 test authentication generation issue
I’m not familiar with the syntax (auth *) → mix test
If I...
New
Given it’s due in April, is the content complete now? Is it worth “really” reading the book now? Or are there tonnes of non-typo changes ...
New
Hi, I just finished reading Programming Phoenix LiveView B10 PDF edition.
I found some typos and errata, and I will report them all in t...
New
if active Pentominos do not showup on the screen it is due to this line on p369
defp assign_shapes(%{assigns: %{board: board}} = socket)...
New
In this paragraph:
The schema macro is not the only aspect of the Product module that helps us interact with the products database tabl...
New
Some typos and confusing bits I’ve noticed in the first 100 pages or so:
pp 12: “Now, start the web server” – the output snippet should...
New
In the book the invocation is presented as:
“<.live_component
module={PentoWeb.ProductLive.FormComponent}
id={@product....
New
On page 77 the book tells us to add a validation rule checking that the unit price is greater than 0.0 then on page 161 it’s suggested th...
New
Hi! To get to see the shapes on the board, I think that where it says:
# lib/pento_web/live/game_live/board.ex
def assign_shapes(%{assig...
New
In Chapter 4. Generators: Live Views and Templates, under the Manage Change with a Form Component section push_navigate/2 is described, h...
New
In PentoWeb.RatingLive.Index.product_rating/1 function, there is a call to <RatingLive.Show.stars rating={rating} product={@product} /...
New
The last line in the first paragraph on page 99 reads:
…put certain instructions in socket.products.inserts or socket.products.deletes....
New
The 3rd paragraph on the page states:
Our <.header> function invocation in the index template doesn’t make use of the <:subtit...
New
Most Active Last Three Years
Author Spotlight: Bruce Tate (@redrapids)
Programming languages always emerge out of need, and if that’s not always true, they’re def...
New
I am working on the “Your Turn” for chapter one and building out the restart button talked about on page 27. It recommends looking into ...
New
Author Spotlight: Sophie DeBenedetto (@SophieDeBenedetto)
The days of the traditional request-response web application are long gone,...
New
Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
New
In general, the book isn’t yet updated for Phoenix version 1.6. On page 18 of the book, the authors indicate that an auto generated of ro...
New
The markup used to display the uploaded image results in a Phoenix.LiveView.HTMLTokenizer.ParseError error.
lib/pento_web/live/product_l...
New
It seems the second code snippet is missing the code to set the current_user:
current_user: Accounts.get_user_by_session_token(session[&...
New
root_layout: {PentoWeb.LayoutView, :root},
This results in the following following error:
no “root” html template defined for PentoWeb...
New
Book: Programming Phoenix LiveView, page 142 (157/378), file lib/pento_web/live/product_live/form_component.ex, in the function below:
d...
New
Title: Programming Phoenix LiveView B8 - entire Ch4 modal component section needs correcting (Page 101-114)
Example: Programming Flutter...
New
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
(Phoenix 1.6.6, Ecto 3.7.2, Elixir 1.13)
When building the custom Survey context, we are told to then update the rating.ex file with the...
New
Programming Phoenix Liveview: live_modal to live_component (page 101)
Hi, First of all thank you for this awesome book.
I saw minor cha...
New
The introduction instructions under section “Build a Simple LiveView” are incomplete. If followed from book one gets the following error:...
New
The text talks about adding two keys to assigns, a session_id key and a current_user key, but the example code is only showing the sessio...
New
Most Active Over Three Years
A Hero’s Journey with Sophie DeBenedetto
@SophieDeBenedetto author of Programming Phoenix Liveview, discusses her journey to becom...
New
The generated iex result below should list products instead of product for the metadata. (page 67)
iex> product = %Product{}
%Pento....
New
Hi! I know not the intentions behind this narrative when called, on page XI:
mount() |> handle_event() |> render()
but the correc...
New
Dear Sophie.
I tried to do the “Authorization” exercise and have two questions:
When trying to plug in an email-service, I found the ...
New
“The ProductLive.Index template calls a helper function, live_component/3, that in turn calls on the modal component. ”
Excerpt From: Br...
New
A further clarification: When I move to the “Stateful components” section and run a compile with “iex -S mix”, the compile works. When I ...
New
The right lifecycle should be
mount/3
handle_prams/3
render/3
New
On Chapter 3 - Page 78, the beginning of the page has this code here:
@doc """
Maybe it is missing to put the Pento cont...
New
socket is being accessed in the function body, hence the need to include it in the function head.
Current:
def maybe_track_user(
...
New
In the code sample for auth /pento/lib/pento_web/live/user_auth_live.ex the on_mount function is defined as:
on_mount(_, params, %{"...
New
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
Hi there,
Just wanted to call out that although what needs to happen should be pretty obvious, when we add handle_progress/3 on page 138...
New
“You’ll see how LiveView let’s you move fast by offering elegant patterns for code organization, and you’ll find that LiveView is the per...
New
The schemaless form defined in file “lib/pento_web/live/promo_live.html.heex” on page 133 of the book requires some transformation. The :...
New
I have read first chapter. Will add my notes / code tries / self exploration as I go along!
Thank you @AstonJ for encouraging to start ...
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.