Solved

Folder structure inside C# solution

Posted on 2008-10-30
4
1,049 Views
Last Modified: 2013-12-17
What should the structure be like? Let's say I have a lot of enums, structs, etc each in a .cs file. Should the folder structure then be like:
A:
Project
  ->Enums
     ->Guestbook.cs
     ->Userhandling.cs
  ->Structs
     ->Guestbook.cs

Or B:
Project
  ->Guestbook
     ->struct.cs
     ->enum.cs
  ->Userhandling
     ->enum.cs

Or maybe some other option I am not aware of?
Pros and cons between the two I mentioned?

Thanks for advice.
0
Comment
Question by:husker475
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 6

Expert Comment

by:RishadanPort
ID: 22846328
That's totally 100 percent up to you.
0
 
LVL 6

Expert Comment

by:RishadanPort
ID: 22846333
Folders just make it easier for the programmer. Do what you feel is the easiest to use
0
 
LVL 18

Accepted Solution

by:
philipjonathan earned 500 total points
ID: 22846946
I think there's a slight advantage of using option B, it is more "modular" than option A. Supposing in the future, there is a need to use UserHandling classes in other project, or change the existing Guestbook to use 3rd party library, then you can quickly isolate the changes. But then, this also depends on how the code itself is designed. It just helps you to store the code more tidily.
0
 
LVL 4

Author Closing Comment

by:husker475
ID: 31511894
Makes sense, thank you.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question