Reputation: 1239
In our project there are C# classes which does something (engine code), and some data transfer (DTO) classes to parameterize the engine fuctions. One of the project member likes to separate the classes into folders:
DTO\class1.cs
DTO\class2.cs
engine1.cs
engine2.cs
Other project member is bothered by this folder separation, he likes it in the same folder as these codes are part of the problem:
class1.cs
class2.cs
engine1.cs
engine2.cs
First method separates the valuable classes from the 'worthless' ones, and speeds up the searching in the Solution Explorer - but the DTO name is not a nice one. I am interesting in how you guys separate the code into folders (and how to name them) in your (bigger) projects?
Upvotes: -2
Views: 84
Reputation: 1010
It's whatever you like. I personally use folders to group certain files. For games i.e.
There are more ways to do things like this, but it's all personal. Just think of something good. If you code with other people, you should discuss and write down the code convention first.
Upvotes: 0