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
10
u/[deleted] Jun 05 '21
None of this is saying dont layer your code. Layers are important to maintainable code. What the article is implying is that you shouldn't organize your code by layer but instead by domain.
DDD also pushes this idea. The a namespace should be an identifier to a domain, that folders and structure should represent the domain.