At last year’s ElixirConf, Chris McCord stunned the keynote audience when he announced LiveView: a library for the Phoenix web development framework that would allow developers to perform real-time client-side updates using server-side Elixir.
(If you need a refresher on LiveView, see this blog post that sums up the ElixirConf announcement).
LiveView was still in development at the time, but six weeks ago, Chris finally made the repo public, apparently succumbing to the throngs of developers who were eager to try it…
Wondering what’s it all about? Read on to find out how the book came to be, and what you can expect to find inside.
Ecto is a database library for the Elixir programming language. It’s included with the Phoenix web development framework, so that’s where a lot of developers (including me) first encounter it, but it’s independent of Phoenix and you can use it in any Elixir application that needs to access a relational database.
When I first starting learning Ecto, I felt like there was a gap in the learning materials I found at the time. …
The new feature, tentatively called “LiveView”, allows developers to add dynamic, client-side interactions to web pages, using code that runs in Elixir on the server.
If that doesn’t immediately make sense, let’s take a step back and consider the problem.
Think of a registration form on a web page. We want to provide immediate feedback to our users when the information they’re providing is missing or incorrect. We don’t want them to have to fill out the entire form, submit it to the server, then wait for a complete page re-render to discover they made an error. …