Chapter 6Designing Your Elixir Applications

Software that solves real-world problems has to maintain and organize various files. It’s important that you learn language features that will help you organize your code and design your application domain. A well-organized codebase makes it easier to fix bugs and add or change features. In this chapter, we’ll build a game and you’ll learn new techniques to build and design your own application. You’ll learn how to design the application entities with Elixir structs. You’ll see how to create polymorphic functions using Elixir protocols. You’ll create function contracts with Elixir behaviours. The first step is to learn the basics of Mix, the essential tool to start any new Elixir project.

We’ll use ...

Get Learn Functional Programming with Elixir now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.