Solved

Folder structure inside C# solution

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

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…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 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