Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Code formatting in Elixir

Code formatting in Elixir

Jan Fornoff

December 14, 2017
Tweet

More Decks by Jan Fornoff

Other Decks in Programming

Transcript

  1. What is code formatting and why is it awesome? •

    Applying a consistent style to your code ◦ Indentation ◦ Line length ◦ Parentheses • Automatically! • Increased workflow efficiency • Less arguments about code style preferences! https://www.sandimetz.com/blog/2017/6/1/why-we-argue-style
  2. Code formatting is coming to Elixir! • Mix (Elixir’s build

    tool) is getting a new task in v1.6 • mix format ◦ Super simple to use ◦ Minimal configuration ◦ Formats your entire codebase - or a single file - with one command