Using Ecto.Multi and Phoenix.PubSub to update Phoenix Liveview Fundamentals & Deployment

Dependency Inversion with Elixir Protocols

I’ve always liked the Dependency Inversion Principle (DIP). Once understood, it helps us decouple code in surprising ways. Let’s take a look at how Elixir protocols decouple code through DIP.

✍️ https://www.germanvelasco.com/blog/dependency-inversion-with-elixir-protocols