Software design is a difficult job and design should change according to the…
Elixir has built in four strategies for supervision trees to enable fault tolerant systems. The names of strategies are :one_for_one, :one_for_all, :rest_for_one, :simple_one_for_one. Enjoy the visualisations…
There are two ways of dynamic function creation with arity using Elixir Macros. For both of the ways, the first thing is creating dynamic args:
defp create_args(_, 0), do…
Elixir way of keeping code clear and reusable is creating modules and importing them when needed. However import method is easy to use for static module names, it requires more afford to load dynamically assigned modules.
Elixir/Erlang concurrency model is based on the actor pattern which runs on top of BEAM(Erlang Virtual Machine) instead of running directly on Operating System. The actor pattern’s actor is an “Elixir Process” in Elixir programming language.