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

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

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 2017 - Thinking In Ecto - Darin Wilson
35:25
ElixirConf
Рет қаралды 23 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
-5+3은 뭔가요? 📚 #shorts
0:19
5 분 Tricks
Рет қаралды 13 МЛН
A Nothing Dialer App?! | Nothing Reacts
5:59
Nothing
Рет қаралды 74 М.
From $erverless To Elixir | Prime Reacts
22:34
ThePrimeTime
Рет қаралды 122 М.
Phoenix LiveView for web developers who don't know Elixir.
22:38
Domain-Driven Design: The Last Explanation You'll Ever Need
21:05
Software Developer Diaries
Рет қаралды 18 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН