Structs for order

Sometimes when Andrey looks at Elixir code written by Elixir-newcomers he notices that some of them avoid Structs. Maybe ‘avoid’ is the wrong word, but he sees a lack of Structs usage. In most cases that usage ends up with Ecto models, but there are a lot of places in a Phoenix application (or just an Elixir console application) where Structs might be very helpful. During the talk Andrey will try to show the value of Structs and how they are related to an application's domain model as elementary entities that define data contracts and are responsible for this data validation and handling.

More information can be found in the article he wrote: https://medium.com/coingaming/elixir-structs-for-the-order-5c45be57c5c9

OBJECTIVES

The talk will show an approach to break complex 'one-huge-file' controllers/modules into small pieces and how Structs is responsible in this.

Upcoming conferences

Start booking your calendar with more Code Sync conferences happening across the globe. We will be slowly releasing more dates, in the meantime here is what we’ve planned already:

All conferences