Programming Phoenix LiveView (Pragmatic Bookshelf)
Hot This:
Latest Threads About This Book

Page 100
Add the following snippet to your index.html.eex template:
index.html.heex
Page 105
Our <.header> function invocati...
New

Hi,
i followed the examples and generated the Catalog live ressource as described on page 67, added the /product routes in the correspon...
New

Title: Name of book: Programming Phoenix LiveView
Can you remove all those “zero width space” inside code block ? that unicode character...
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

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
Most Active This Week
Most Active This Month
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

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

Title: Programming Phoenix LiveView: P97 test authentication generation issue
I’m not familiar with the syntax (auth *) → mix test
If I...
New

On page 52, the topic of “Protecting Sensitive Routes” is introduced with this snippet from router.ex:
scope "/", PentoWeb do
pipe_thr...
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

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

The code example at the top of page 140 includes the phx-debounce=blur binding:
<.input field={@form[:email]} type="email"
label="E...
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 the book the invocation is presented as:
“<.live_component
module={PentoWeb.ProductLive.FormComponent}
id={@product....
New

In PentoWeb.RatingLive.Index.product_rating/1 function, there is a call to <RatingLive.Show.stars rating={rating} product={@product} /...
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 this section, at the point where it tells the reader to “Start up the server, log in, and point your browser at /promo… You should see...
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

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

Author Spotlight:
Bruce Tate
@redrapids
Programming languages always emerge out of need, and if that’s not always true, they’re defin...
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, b...
New

Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
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

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

(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

The introduction instructions under section “Build a Simple LiveView” are incomplete. If followed from book one gets the following error:...
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, %{"user...
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
Most Active Over Three Years

A Hero’s Journey
with Sophie DeBenedetto
@SophieDeBenedetto
Sophie DeBenedetto, author of Programming Phoenix Liveview, discusse...
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 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 context before Cata...
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

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

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

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

Just in case you miss it :wink:
New
Book Info
Publisher:
Pragmatic Bookshelf
Get money off!

The Pragmatic Bookshelf
35% off any eBook
Simply use coupon code "devtalk.com" at checkout. See full details here.