Good and Bad Elixir
2025-03-18
![]()
The article explores the common pitfalls and best practices when coding in Elixir. It highlights the disadvantages of using functions like Map.get/2 and Keyword.get/2 because they tie you to a specific data structure, promoting the use of Access instead. Other key points include strategies for more effective error handling, avoiding the use of pipes when working with side-effecting functions, and the importance of refining how higher-order functions are used within pipelines. The goal is to encourage writing reusable and well-composed software components.
Was this useful?