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...
Not all applications have exactly one database for everything. Applications will integrate with external services etc. your user registration context function might do things like send emails and track analytics etc.
0 reposts0 likes