Skip to content

Files

Latest commit

5adc95b · May 10, 2021

History

History
This branch is 3 commits behind thoughtbot/guides:main.

elixir

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 10, 2021
Jul 3, 2020

Elixir

Sample

  • Avoid macros
  • Don't separate multiple declarations of functions of the same name with newlines.
  • Indent pipes by two spaces when using the match operator (=).
  • Don't indent pipes when not using the match operator (=).
  • Prefer pattern matching and guards in function definitions over conditionals in the function body.
  • Break long lines after 100 characters.
  • Order the dependencies of a module as: use, import, alias.
  • Put an empty line between each type of dependency.
  • Sort the dependencies in each section alphabetically.