u/nlayeredhumanin r/elixir • Recommends
On “Did contexts kill Phoenix?”
Coming from a heavy DDD background myself I think there is a lot of things that can be improved. First time I used phx.gen.auth I was shocked that the recommended context name was Accounts since that clashes in almost any finance application. I've found that Identity works much better as it accurately represents authentication/authorization concerns without conflicting with domain concepts.
I think Andrew does a really great job of explaining contexts clearly in this talk link to this video
I understand that while the name context is used maybe it was never meant to be a reference to DDD?
Naming contexts and naming in general is really one of the hardest parts of any development endeavor.