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...
Phoenix/web is by (my) definition not an application layer. It is a transport/interface layer. The logic of your application needs a unified interface, and should not be spread across a bunch of transport specific concepts like controllers, views, etc.
0 reposts0 likes
No replies yet.