Elixir

Tests Done Right With CircleCi
Tests Are Lame but they don’t have to be Ever since i started working with CircleCi at Sauce it bothered me that we don’t use what it has to offer to the fullest and this is especially so with tests circleCi has this really neat way of showing test results as shown below despite how nice doing this looks it also has another really useful feature it allows you to do splitting and parallelism on jobs this means jobs but specifically, a test can be split across say 4 machines and split up by the time it took to run the tests.
Read More…
Live Search Using Liveview
LiveView provides real-time user interaction within an application. Some use cases where LiveView fit excellently in an application are input validation, button click, autocomplete and live search.
Read More…
Ecto Multi
There are times when we need to do multiple operations at once on various database tables. For example, when creating a new entity, such as a user, we might want to also insert a related property in some other table, such as a table that holds the preferences of a user.
Read More…
Elixir Function Guards
Sometimes, we’d like to have function calls depending on certain conditions, such as whether the role of a user is admin or just a mere peasant.
Read More…