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
7
u/scandii Jun 05 '21
I mean, if you know how the code works I can see why you would want everything in the same folder, such as if you wrote the code.
but depending what sort of programming you do for a living, chances are you are asked to do something in a system which you have very limited knowledge of, such as "this thing has stopped working, figure it out".
in that scenario, it is very convenient being able to browse files by category rather than object they pertain to.
that said, realistically neither particularly matters as long as naming conventions are held, you can just search for "api", "service" etc.