Cleaning Up Your Framework

Part of good development practice is making sure your code is consistent, clean, and concise. Keeping your code clean and consistent is important to the long-term maintenance of your framework. You, and any future developers who improve your code base, will benefit by ensuring your code is easy to build upon in the future.

In this section, you’ll use two tools: credo and the Elixir formatter to improve the structure and style of your code.

Using the Elixir Formatter

Following the coding style of a particular programming language is important to ensuring your code is readable to you and any other developers that work on your project. Fortunately, Elixir comes with a formatter that will help you enforce the formatting ...

Get Genetic Algorithms in Elixir now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.