Fascinating. What comes to mind is frameworks that enforce horizontal separations... and the whole "convention over configuration" opine/meme.
Programming
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
TLDR; don't group files by "what they do in common" but rather the ones that "work with the same thing". So instead of components, libraries, icons folders, group them like table1, table2, etc
if you are following DDD and/or clean architecture, this article would be giving you terrible advice. You go vertical but the moment you need a type/utility from another place it stops making sense.
and they wrote a section on that
https://tkdodo.eu/blog/the-vertical-codebase#but-what-about-shared-code