What is the best way to organize a MVC2 web project (as complex as stackoverflow)?
should i have everything in one project?
if not, how should i separate the projects and folders?
What is the best way to organize a MVC2 web project (as complex as
Share
There’s no best way. There are good and bad ways. Having everything in the same project is definitely not a good way. Big projects should be separated in layers and each layer usually goes into a different assembly so that it can be reused in other projects. For example you could have Models, Data Access, Business Logic, Web.
Jeffrey Palermo has a series of posts about the onion architecture which is worth reading.
From performance standpoint it is considered a good practice to have less bigger assemblies than many smaller assemblies.