Solved

Folder structure inside C# solution

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
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…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 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

19 Experts available now in Live!

Get 1:1 Help Now