Appearance
What are anti-patterns?
Source: Elixir guide, What are anti-patterns?.
Anti-patterns are common mistakes, or indicators of problems in code. They're also called "code smells". These guides document ones found in Elixir software so you can spot them and know their pitfalls.
Matching an anti-pattern doesn't mean the code must change. Sometimes it's the best approach for the problem at hand. No codebase is free of them, and you shouldn't aim to remove them all.
- Code-related: language idioms and features
- Design-related: modules, functions and their role in a codebase
- Process-related: processes and process-based abstractions
- Meta-programming: macros and code generation
Each entry has the same structure:
The initial catalog came from Lucas Vegi and Marco Tulio Valente (ASERG/DCC/UFMG), in Understanding Code Smells in Elixir Functional Language. For security guidance, the Security Working Group of the Erlang Ecosystem Foundation publishes resources for Erlang and Elixir at security.erlef.org.