Learn You a 𝛿-CRDT for Great Good
A follow on from setting up a distributed Phoenix application in Part 1, in this article we cover creating the business logic, and ensuring the data is distributed across the cluster using Horde and DeltaCrdt.
A quick article (and screencast) still related to the LiveView pushState. The previous one was mainly focused on
We now see how to refactor the code with
live_link getting simpler code and less messages exchanged between LiveView and our browser.
Events are getting more and more popular in the Elixir community. Most people believe that events reduce coupling. It may be true, but this statement is really inaccurate. Check out this short piece about different kinds of coupling and their relation to events.
I wrote a blog post explaining several techniques I often use to refactor Phoenix controller.
Check out the article on our blog: https://www.amberbit.com/blog/2019/6/29/refactoring-phoenix-controllers/
In this episode we’ll continue exploring testing (which we started last time) and start building a Trello clone with Phoenix 1.4.
In particular, we’re going to look at what tests get generated by
mix phx.gen.html, and how they break down in the case of Ecto relations. We’ll be generating multiple related schemas and then going back and fixing the tests.
ElixirWeekly: The Elixir Community Newsletter, covering community news you easily miss, shared on ElixirStatus and the web, in one email every Thursday.
TL;DR try CustomPhx - GitHub in a new Phoenix project to automate Tailwindcss installation and HTML generation.
I made a write-up of all the things that makes my synapses go wild when it comes to Elixir. Because I find the language has a lot of stuff to offer that is not generally available.
In the last episode of my ‘Real World Phoenix’ series we implemented user authentication. Now let’s see how we can implement user authorization by implementing different user roles into our system.
In which I embark to find bugs in my statistex library with property based testing expecting to find nothing because of loose conditions and existing tests… only to find 2 bugs.
It’s commonly quoted that ‘What gets measured gets managed,’ but how do you do that? Elixir’s Telemetry library enables you to stop worrying about how to capture your system’s data and more time thinking about what data to capture.
It’s now possible to try the LiveView pushState support, to change the URL without refreshing the page!
This is part one of a new Elixir Testing series.
In this episode we’ll use the built-in library ExUnit to TDD our way through a common interview problem.