Programming Phoenix LiveView (Pragmatic Bookshelf)

Most Active This Week Top

Most Active This Month Top

Most Active This Year Top

arcanemachine
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
enoonan
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
enoonan
The beginning of the “Use the Component” section instructs readers: Alias the component in SurveyLive by adding this line to the top you...
New
enoonan
I did the exercises in the “Your Turn” section of “Code Generation > Phoenix Authentication”. As a result, when I did the generation ...
New
enoonan
The sample code for explicitly adding the root layout seems to be outdated. I started the book this morning and just now got a “module do...
New
enoonan
The book instructs readers to: Open up lib/pento_web/live/product_live/index.html.heex and add a header that renders the value of the @g...
New
longnight
Title: Name of book: Programming Phoenix LiveView Can you remove all those “zero width space” inside code block ? that unicode character...
New

Most Active Last Three Years Top

asibbald
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
norbu09
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
almirsarajcic
Forms on both pages contain this code user_id in hidden input field: <%= hidden_input f, :user_id %> There could be beginners rea...
New
hKedia
The LiveView Layers: The Modal Component The code generated using the mix phx.gen.live Accounts User users name:string is very different...
New
arcanemachine
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
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
iclight
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
gorkaio
I would suggest recommending resetting ecto in test environment before running the tests. I was faced with ** (Postgrex.Error) ERROR 42...
New
torifukukaiou
B8 defmodule PentoWeb.WrongLive do use Phoenix.LiveView, layout: {PentoWeb.LayoutView, "live.html"} Suggestion defmodule PentoWeb.Wr...
New
deevil
Could you please add a section on dynamically adding/removing one-to-many relationships on a form? Eg: Product and ProductAttribute
New
shaolang
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
julngomz
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
arcanemachine
Page 171 introduces the usage of an operator used in Ecto queries used to interpolate values. As explained by this Stack Overflow answer,...
New
IdiosApps
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
jshprentz
Before creating the pento database, the book instructs, First, make sure you have Postgres installed and running on localhost, accessib...
New

Most Active Over Three Years Top

almirsarajcic
Updating a product in the list is done this way in the book def handle_rating_created( %{assigns: %{products: products}} = socket, updat...
New
asibbald
This whole section is beautifully written. Clear, to the point overview of what we need to do, why we need to do it and how we are going ...
New
krystofrezac
The book uses this code in the age group filter: <form phx-change="age_group_filter" phx-target="<%= @myself%>"> &lt...
New
almirsarajcic
Drawing is done using stateless components that exist in separate modules. For example: # lib/pento_web/live/pento/board.ex def render(a...
New
asibbald
The text here could do with more explanation. It assumes a considerable amount of knowledge outside that covered so far in the book. If a...
New
asibbald
P99: “def live_modal(socket, component, opts) do path = Keyword.fetch!(opts, :return_to) modal_opts = [ id: :modal, return_to: path, com...
New
asibbald
“Stateless Components as Tiny Helpers” This is a great tip/explanation. It would be even better if placed right at the beginning of this...
New
asibbald
P106: “Notice there’s an :id key, as well as a :component key that specifies…” This is a bit unclear - you appear to be referring to th...
New
asibbald
P103: "The modal component markup adds a few LiveView bindings to listen for close events: phx-capture-click=“close”, phx-window-keydown...
New
asibbald
“…Go ahead and add this logic to your template:…” It would be helpful to always have the pathname to the file being referred to (in this...
New
asibbald
P106: “Look at the call to live_component/3 in the modal component’s markup…” It would be worth mentioning that this markup appears in ...
New
asibbald
P103: because the phx-target is set to the @id assignment, It’s not clear (to me at least) where/how it is set?
New
asibbald
P95: “But, whether you click the edit link for the first product on the list or point your browser at the edit route for that product, t...
New
cmo
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
torifukukaiou
Use Schemaless Changesets in LiveView - The Promo Live View forms/pento/pento_web/live/promo_live.html.leex (B5) <%= text_input f, :...
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.