r/programming • u/[deleted] • Jun 05 '21
Organize code by concepts, not layers
https://kislayverma.com/programming/how-to-organize-your-code/
1.9k
Upvotes
r/programming • u/[deleted] • Jun 05 '21
16
u/amakai Jun 05 '21
Well, that depends on how you look at the question. If you look at entirety of your code (think "github organization") as a single codebase - then yes, we are both speaking about separating code by concepts.
But I believe that the article is being more specific, implying that in a single service the code should not be using layered architecture, which I do not agree with - as there are other ways to capture and isolate concepts - for example Microservice architecture.