3 ms·
> Contexts can be confusing, unfortunately. They're based off of bounded contexts from Domain Driven Design. I wouldn't say there is one right way to use Phoeni
by rapnie 3y ago
> Contexts can be confusing, unfortunately. They're based off of bounded contexts from Domain Driven Design. I wouldn't say there is one right way to use Phoenix contexts, though reading up on DDD's bounded contexts really helps. I already had DDD experience before I learned Elixir, though, so it's easy for me to say and maybe more of a pain for others who don't want to do that.
Jenny Shih gave a talk comparing Phoenix contexts with DDD bounded contexts.
https://www.youtube.com/watch?v=vr-qhHrN5_4 https://www.youtube.com/watch?v=vr-qhHrN5_4