Building web applications without a framework Dress up your stdout

Using enums like C, Rails with Elixir macros

Moving from Ruby on Rails to Elixir and Phoenix, we use enums idioms heavily to represent integer flag values. Elixir (or ecto library) does not support idiom enums. But using macros, we can create enums easily.

Using enums in Elixir

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.