I’ve just started reading this but wanted to quickly say that the preface and opening chapter (everything up to the beginning of ‘Part 1’) is not only one of the best openings of any book I’ve read, but also does one of the best jobs to sell the idea of a piece of technology - ever!!
I was going to suggest PragProg consider making it a free download - because I reckon it will do a phenomenal job of helping drive adoption of Elixir and Phoenix …which in turn will mean significantly more potential customers/readers - so a win win for everyone but guess what? It’s already available as a free download!! (Get the preface here and the introductory chapter here.)
Well done Chris, José, Bruce, Jacquelyn, PragProg and anyone else who made that chapter what it is whenever anyone now asks “Why Elixir?” I’ll definitely be including this resource and I can’t wait to read to the rest of the book!
Programming Phoenix 1.4 (eBook) has recently been updated.
Changes in This Release
We added a new chapter: Chapter 8, Testing MVC. This chapter completes part 1 of the book. We’ll circle back and address new features that readers identify as important but for now we’ll move on toward addressing channels.
Addressed errata. Thanks for all of your help and keep them coming!
Hi @chrismccord would you please add a chapter on Phoenix LiveView to the book Programming Phoenix 1.4?
Rumbl will already be completed, so if someone don’t wanna use LiveView, s/he will already be done, but if someone want to use LiveView s/he will read the last chapter too.
I agree that having a chapter on LiveView would be spectacular
I think LiveView is going to be one of Phoenix’s killer features, and it being covered in the de-facto Phoenix book would be awesome (even if to begin with it is just enough to get people productive with it).
LiveView definitely won’t make it into the book given we are shipping the final three chapters and sending it off to production hopefully before end of year, which will be prior to a LiveView 1.0 for sure. Fortunately though, we have a great doc system with elixir and hexdocs so there will be plenty of docs/guides as we get underway.
I’ve just tried to submit the following via PragProg’s errata page but it seems to be down… if anyone succeeds in submitting anything please also submit this (or please let us know when their system is back up)
Page 49 on the PDF version:
The view modules infer their template locations from the view module name. In our example, our Rumbl.UserView would look for templates in the web/templates/user/ directory.
The last update to the regular chapters is IN! We finished the Testing OTP chapter. Due to some major restructuring of the OTP design, the testing chapter took a while to get right. We can see the finish line. Here’s what’s coming:
We still owe you a treatment of Channel Presence.
We will align the configuration with the deployment strategies necessary to build a release.
We will add a treatment of LiveVeiw in the last chapter. We hope you’re enjoying the rewrite so far. Happy reading!
I read “5. Authenticating Users” - “In-context Relationships”, There is a one-to-one relationship between User and Credential. But I don’t see how it is easy to support third-party oauth2 login. Does it mean adding fields such as facebook_uid, twitter_uid in the table?
In my opinion, I will have an Authentication table with provider and uid fields. Then each third-party is one row in the table.
I would love to see (will even pay/donate!) for someone to extend the Authentication chapter with a follow-up using Uberauth and Guardian, and then a jwt, to show not only how to integrate a library but also how to do authentication ‘properly’ and is also production quality.