Discussion about domain-orientated folder structures in Phoenix

I think the distinction between “whether we should separate domain layer/contexts from web layer or not” (call that A) and “whether we should separate the web layer by domains or by layer” (call that B) has been made sort of implicitly. Some comments here talk about A, many talk about B.

I think that A is well accepted, which is good because I feel it’s correct :+1:

B is the one that’s more interesting to me… Personally, I’d agree that I work vertically within the web concern. In other words, I often make changes within one domain, but across multiple ‘layers’ of templates and controllers. This is slightly contrary to the Phx default.

3 Likes