/books/programming-phoenix-liveview
Active Threads:
Latest Threads About This Book
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
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
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
The form used for promo code on page 140 uses phx-debounce which is later explained and written about as if it the reader hadn’t already ...
New
In the second last paragraph on that page it says “on” instead of “no”:
“…more efficiency since you on longer have to store changesets…”...
New
Testing the Point module, I realized that 90° and 270° rotation are swapped. According to the figure on page 340, it should be a clockwis...
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
On page 52, the topic of “Protecting Sensitive Routes” is introduced with this snippet from router.ex:
scope "/", PentoWeb do
...
New
The second sentence in the last paragraph on the page says:
The call to consumer_uploaded_entries/3 returns a list of upload results…
...
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 This Week
Most Active This Month
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
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
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
Most Active This Year
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
root_layout: {PentoWeb.LayoutView, :root},
This results in the following following error:
no “root” html template defined for PentoWeb...
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
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
Since LiveView now supports Streams, the generated code seems to be pushing the user in that direction as well.
As a result, the example...
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
The link to live_patch/2 on the bottom of the page does not work. It seems this function no longer exists in the latest version. This may...
New
With Phoenix and LiveView having recently had a fairly major release, and Programming Phoenix LiveView being updated too, we thought it w...
New
The first heex block of code in the section The Promo Live View should just be the <.header>; the code errors out if you include th...
New
p 150
Now, we’re ready to plug our custom code into the save_product helper functions.
Since we’ve delegated most of the hard work to t...
New
Currently the component looks like this:
<div>
<.form :let={f} for={@changeset} phx-submit="save" phx-target={@myse...
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
Most Active Last Three Years
Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
New
A Hero’s Journey with Sophie DeBenedetto
@SophieDeBenedetto author of Programming Phoenix Liveview, discusses her journey to becom...
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
Book: Programming Phoenix LiveView, page 142 (157/378), file lib/pento_web/live/product_live/form_component.ex, in the function below:
d...
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
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 ProductLive.Index template calls a helper function, live_component/3, that in turn calls on the modal component. ”
Excerpt From: Br...
New
The right lifecycle should be
mount/3
handle_prams/3
render/3
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
Title: Programming Phoenix LiveView B8 - entire Ch4 modal component section needs correcting (Page 101-114)
Example: Programming Flutter...
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
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
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
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.