Post
I actually posted about this recently, just not here. genserver.social/notice/Ap4or...
genserver.socialPaweł Świątkowski (@katafrakt@genserver.social)A common folk wisdom in #Elixir (or actually Phoenix) is that you should never call Ecto repo functions directly from the controllers, but they should be encapsulated by a context. I disagree. Th...
Wherever you do it you’ll have the same problem. If contexts can only make data changes in a way that transactionally composes, then they can’t be where your “business logic” is. I don’t see a difference in an application layer and a domain layer.
0 reposts0 likes