This question already has an answer here:
- Folder-by-type or Folder-by-feature 3 answers
I have many models in my project that are unrelated to each other. I wanted to group them but I wonder what's better:
Folder/namespace per group
Group1/ ├── Models/ │ ├── Class1.cs │ ├── Class2.cs ├── Constants/ │ ├── Constants1.cs │ ├── Constants2.cs
Folder/namespace per type
Models/ ├── Group1/ │ ├── Class1.cs │ ├── Class2.cs Constants/ ├── Group1/ │ ├── Constants1.cs │ ├── Constants2.cs
Which is better and why?
Note: I don't want to put them in separate projects, as those types will be used only by 1 project.