ElixirMix Podcast 064 - Refactoring Elixir with Hubert Lepicki Cleaning up your Elixir Code

DynamicManager on top of DynamicSupervisor

Tarearbol gets DynamicManager to ease building the collections of supervised workers with similar behaviours, e. g. watchers for different changing entities.

  • Scaffold for the supervised DynamicSupervisor
  • No code for managing processes required
  • Implementation is as easy as 4 callbacks
  • Extremely easy testing
  • Behaviour-driven consumers
  • Consistent state and callbacks on state changes (like restarting)

Implementation details and flow diagram.

Shameless plug: Check out @elixirstatus' other community project:

Credo, a new static code analysis tool that acts as a code linter, but also focusses on teaching coding practices and code consistency.