Jump to ratings and reviews
Rate this book

Programming Phoenix LiveView

Rate this book
The days of the traditional request-response web application are long gone, but you don’t have to wade through oceans of JavaScript to build the interactive applications today’s users crave. The innovative Phoenix LiveView library empowers you to build applications that are fast and highly interactive, without sacrificing reliability. This definitive guide to LiveView isn’t a reference manual. Learn to think in LiveView. Write your code layer by layer, the way the experts do. Explore techniques with experienced teachers to get the best possible performance.

Instead of settling for traditional manuals and tutorials, get insights that can only be learned from experience. Start with the Elixir language techniques that effortlessly marry your client templates and server-side handlers. Design your systems with the right layers in the right places so that your code is easier to understand, change, and support. Explore features like multi-part uploads and learn how to comprehensively test your live views. Roll into advanced techniques to tie your code to other services through the powerful publish-subscribe interface.

LiveView brings the most important programming techniques from the popular Elm and JavaScript React frameworks to Elixir. You’ll experience firsthand how to harness that power by working side by side with some of the first LiveView users. You will write your programs to change data on the server, and you’ll see how LiveView efficiently detects those changes and reflects them on the web page. Start from scratch, use built-in generators, and craft reusable components. Your single-purpose reducers will transform server data that your renderers can turn into efficient client-side diffs.

Don’t settle for knowing how things work. To get the most out of LiveView, you need to know why they work that way. Co-authored by one of the most prolific authors and teachers in all of Elixir, this book is your perfect guide to one of the most important new frameworks of our generation.

370 pages, ebook

Published September 1, 2021

21 people are currently reading
52 people want to read

About the author

Bruce A. Tate

23 books9 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
7 (25%)
4 stars
12 (44%)
3 stars
5 (18%)
2 stars
3 (11%)
1 star
0 (0%)
Displaying 1 - 6 of 6 reviews
Profile Image for Mike Zornek.
62 reviews8 followers
March 27, 2022
I wanted to like this book more but I thought it was trying to do too much. It was also unclear what the expectations were for the reader. Was this made for people already using Elixir or people wanting to hear about LiveView from another tech like React or maybe Rails? I did pick up some helpful code styles and I align with the overall separation of concerns the book promotes. I also feel really bad for these authors as well as others trying to teach LiveView since it and the recommended patterns are still a very fluid moving target.

If someone asked me how to learn LiveView I'd probably point them at the docs and public conference talks as well the video course at Prag Studio, even though it too has fallen behind a little bit as things continue to change.
Profile Image for Adam Wan.
17 reviews3 followers
December 26, 2023
As of 2nd Feb, 2022, the author has just made a big update of the book.
The content is now more about the latest version of LiveView.

It is a must read book if you want to know how to do LiveView in the fastest pace.

----------------------------------------------------------------
26th Dec 2023, apart from Pragmatic Studio (up to 0.20.0), this is the only book can provide you information up to (0.19.0)

A lot of improvement has made and no one really knows when Phoenix Liveview goes production.
Profile Image for Bodo Tasche.
97 reviews13 followers
March 19, 2022
It started by explaining regular phoenix a lot. And had examples that needed long explanations. One even had a whole chapter explaining the setup before the LiveView part of the example started. Sorry, but only 2 stars from me.
Profile Image for Vitor.
16 reviews8 followers
September 2, 2022
It's a good book to get started. The chapters on testing and the last one (creating a game) can be skipped.
Profile Image for John.
40 reviews2 followers
August 7, 2023
The book is unfinished and unedited as of now, there's a huge number of quirks, typos, inconsistencies, I was reading a "beta" version. Meanwhile, the LiveView library is still actively evolving its API, and some example code no longer works on the recent versions.

It took me quite some time to go through the book. The author overuses the same literary approach, "we will do this, but first we will do that, but first let's make a plan, now let's dive deep", this pattern breaks my line of thought, quickly gets repetitive and distracts from the content. Same statements are repeated in slightly different formulations multiple times.

The target audience is unclear. Covering the basics of Ecto didn't seem necessary for me, I would assume the reader has done some Phoenix apps with Ecto already. Then, in the last part of the book I learned much more about the game of Pentomino and about general code design than about the LiveView.

Nonetheless, this book helped me get a proper grasp of LiveView and taught me some beautiful design techniques in Elixir.

The next possible step to practice LiveView is to look at Chris McCord's LiveBeats app, for an advanced example from the library author.
Profile Image for Bruno.
12 reviews2 followers
October 15, 2023
This book is a fantastic introduction to LiveView. Specially if you already come with a background in other frontend frameworks like React or Vue, you will feel at home with this book. Bruce and Sophie do an amazing job in showing all the most powerful capabilities of LiveView, but not only that, they also give you a great tour around Elixir and Phoenix features that are important to have under your belt.

The book has been kept up2date with all these LiveView releases, so it's definitely worth a read.
Displaying 1 - 6 of 6 reviews

Can't find what you're looking for?

Get help and learn more about the design.