Solved

Folder structure inside C# solution

Posted on 2008-10-30
4
1,039 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now