ElixirConf 2023 - German Velasco - Using DDD concepts to create better Phoenix Contexts

  Рет қаралды 10,597

ElixirConf

ElixirConf

Күн бұрын

Leave comments at: elixirforum.co...
Phoenix contexts were introduced in Phoenix 1.3. Four minor versions later, we’re still confused when trying to apply them in our applications.
Contexts may make sense in theory, but it is hard to figure out just what makes a good context when it comes to practice. At least I know I’ve created many “contexts” that became… glorified junk drawers.
That’s because Phoenix contexts are generic: they’re a namespace. So, even though they give us a nudge in the right direction, they don’t provide enough guidance to implement our own successfully.
That’s where domain-driven design (DDD) can help us.
Using DDD’s concepts, we can create different Phoenix contexts based on their role!
So, join me as we walk through different types of Phoenix contexts we can use in our applications. Some will be DDD’s bounded contexts (different from Phoenix contexts), others will be DDD entities, and others will be DDD aggregates.
By the end, you’ll have a more extensive toolset for creating Phoenix contexts and a new lens through which you can organize your Elixir modules.

Пікірлер
ElixirConf 2023 - Chris McCord - Phoenix Field Notes
58:39
ElixirConf
Рет қаралды 17 М.
ElixirConf 2017 - Thinking In Ecto - Darin Wilson
35:25
ElixirConf
Рет қаралды 23 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
The Return of Procedural Programming - Richard Feldman
52:53
ChariotSolutions
Рет қаралды 64 М.
ElixirConf 2023 - Jason Stiebs - A LiveView is a Process
26:33
ElixirConf
Рет қаралды 4,2 М.
From $erverless To Elixir | Prime Reacts
22:34
ThePrimeTime
Рет қаралды 123 М.
Don't Fight the Monolith by Peter Ullrich | ElixirConf EU 2023
29:46
ElixirConf 2022 - Chris Keathley - SOLID code isn't flexible
38:08
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.