Friday, August 18, 2017

Preloading Nested Associations with Ecto



For the purpose of this article, assume we are building a simple blog app – our users can write blog posts and make comments on them. We’re interested in the associations, or relationships, between the models. A single blog post belongs to a user and has many comments.

No comments:

Finite-State Machines, Part 1: Modeling with Haskell Data Types

Stateful programs often become complex beasts as they grow. Program state incohesively spread across a bunch of variables, spuriously guar...