Episode 164 - Quarantine Special: Module Organization in Elixir
About this episode
We’re back with another episode of ElixirTalk. In this episode Chris & Desmond do a deep dive on organizing code in Elixir and talk about some best practices. We recorded this a couple weeks ago so it may sound a little stale :)
We touch on:
- Module and context naming
- How we like to organize code in our projects
- Big long modules vs many small modules
- How to split up contexts
- Injecting code via macros
Links
- On the Criteria to be used in decomposing systems into modules - D.L Parnas: https://www.win.tue.nl/~wstomv/edu/2ip30/references/criteria_for_modularization.pdf
- Proposal for some ew rules for Phoenix contexts: https://devonestes.herokuapp.com/a-proposal-for-context-rules
- Write code that is easy to delete, not easy to extend: https://programmingisterrible.com/post/139222674273/write-code-that-is-easy-to-delete-not-easy-to
- How to use
usewell: https://dockyard.com/blog/2017/12/07/macro-madness-how-to-use-use-well - Protocols in Elixir: https://hexdocs.pm/elixir/Protocol.html
More from Elixir Talk
Episode 166 - Elixir at Boulevard w/ Sean Stavropoulos We're back after a hiatus on our irregularly posted podcast! Chris and Desmond are back in the hot seat, this time joined by CTO and co-founder a…
Episode 165 - José Valim on Bytepack, Open Source, and LiveView changes in Phoenix 1.5 Chris and Desmond are backed by a very special guest; José Valim! You might know José as the creator of the Elixi…
We’re back with a recap with another episode of ElixirTalk. In this episode we cover quite a few topics; an EMPEX LA recap, a foray into project management tools that we like and use (!), and then we…
Episode 162 - Designing Elixir Systems with Bruce Tate It's another episode of ElixirTalk, this time Chris and Desmond are joined by the one and only Bruce Tate author of many notable titles such as P…
Episode 161 - feat. Todd Resudek We’re back with another episode of ElixirTalk, this time joined by the one and only Todd Resudek who gives us a run through of his talk at this years EMPEX LA entitled…