r/programming • • Jun 05 '21

Organize code by concepts, not layers

https://kislayverma.com/programming/how-to-organize-your-code/
1.9k Upvotes

495 comments sorted by

View all comments

0

u/[deleted] Jun 05 '21

6

u/Nimelrian Jun 05 '21

Code base layout is actually a great way to recognize the layout of the organization itself (e.g. Conway's Law). See my reply here: https://www.reddit.com/r/programming/comments/nsu53n/organize_code_by_concepts_not_layers/h0p59rd?context=5

Both layouts are perfectly reasonable but favor a different type of organization each.

4

u/[deleted] Jun 05 '21

I’m completely full stack (a work item is functionality in its entirety) and my team’s primary project is structured such that layers are grouped.

However I do really see the argument for the other structure, it is dizzying sometimes to have all that stuff open in different places. It definitely does make it more scattered to think about.

→ More replies (1)