?
Solved

Folder structure inside C# solution

Posted on 2008-10-30
4
Medium Priority
?
1,054 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 2000 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

Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

770 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