MediaCommMVC 0.4 Project Setup

by mgreuel 21. March 2011 18:12

Before starting the development I want to determine the involved frameworks, components and practices.

Web Framework

I will just go with the obvious choice: ASP.NET MVC3 with the Razor view engine. This might not be the most exciting choice, but I haven't used razor before and want to try it.

Specification-/Testframework

I'm really looking forward to using Specflow. On the one hand I want to have automated regression tests to get rid of (or at least reduce) the manual testing. On the other hand I want to have a showcase for the testing team on my current project, because they're always looking for ways to reduce manual testing. I'm not quite sure whether to include the UI, but I'll probably ignore it for starters.

Although I'm fine with MSTest or any other test framework, I'll use NUnit just to try it.

Code Contracts

I've recently introduced code contracts in some components of my current project. I like the idea of code contracts and was excited to see them included in .NET 4.0, but it's a lot of additional work to get them right throughout a project. What is even worse is the tooling. The tools didn't make it into VS2010 so you have to install them separately. That would be ok for me, if the performance wasn't as horrible as it is. Even in a relatively small solutions the static checker completely uses a single core for several minutes and uses up to 1.5GB of ram.

Therefor I'll skip code contracts for now. Hopefully they'll get the tooling right till the next release of VS.

Xml Comments

MediaCommMVC is currently completely document with xml comments and when working in teams I always insist on xml comments. Nevertheless I believe that clean code does not need comments (at least not that verbose), its just much harder (sometimes even impossible) to get people writing clean code than it is to get them writing comments. As I'm working on this alone, I'll try to keep the code clean and not use xml comments.

Solution/Project Structure

In the past I sometimes thougth quite a lot about how to organize projects and split them into assemblies. MVC and DI made me think about physical layers (assemblies) and logical layers separately and after reading an article by Patrick Smacchia I realized that I've no reason to split the project into many assemblies. I'll start with 3 projects in the solution (UI, Core, Test) and try to keep it simple.

[EDIT: VS and Resharper support is significantly better when controller and views are in the same project so I'm down to 2 projects (Web & Tests)]

3rd Parties Libraries

Simple Choice: Nuget. I had some trouble with more complex solutions but this small project it should work just fine.

Database/DAL

It's currently nHibernate with SQL Server. I might look into migrating to Raven DB, but I'm not sure. May be an option for v 0.5 ;)

Tags:

MediaCommMVC

Comments (2) -

Lilli Lamaitre
Lilli Lamaitre Vereinigte Staaten
4/18/2011 5:15:51 PM #

Simply wish to say your article is as surprising. The clarity in your post is just spectacular and i could assume you are an expert on this subject. Fine with your permission allow me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please keep up the enjoyable work.

Queens locksmith
Queens locksmith Vereinigte Staaten
4/18/2011 5:19:21 PM #

Attractive section of content. I just stumbled upon your weblog and in accession capital to assert that I get actually enjoyed account your blog posts. Anyway I’ll be subscribing to your feeds and even I achievement you access consistently rapidly.

naturomax pills
naturomax pills Vereinigte Staaten
4/18/2011 5:22:43 PM #

I like, on target, thoughts and concepts pretty good information here<a href="naturomaxexposed.com/is-naturomax-a-scam-or-will-it-improve-your-sex-drive">http://naturomaxexposed.com/is-naturomax-a-scam-or-will-it-improve-your-sex-drive</a>

irs offer in compromise
irs offer in compromise Vereinigte Staaten
4/19/2011 2:13:49 AM #

I am curious to find out what blog system you have been using? I'm experiencing some small security issues with my latest site and I'd like to find something more risk-free. Do you have any solutions? Hmm it appears like your website ate my first comment (it was super long) so I guess I'll just sum it up what I wrote and say, I'm thoroughly enjoying your blog. I too am an aspiring blog writer but I'm still new to everything. Do you have any suggestions for inexperienced blog writers? I'd definitely appreciate it.

download twelve
download twelve Vereinigte Staaten
4/19/2011 2:20:25 AM #

Thanks for ones info, I am going to be checking in..thanks

Credit repair yourself
Credit repair yourself Vereinigte Staaten
9/14/2011 12:35:06 PM #

This is amazing informational material. I was really impressed with how many good points were made in this article. I will read this content again.

Watch Titanic Online
Watch Titanic Online Vereinigte Staaten
9/19/2011 11:37:48 AM #

You made a number of nice points there. I did a search on the matter and found nearly all folks will agree with your blog.

Legal credit repair company
Legal credit repair company Vereinigte Staaten
9/19/2011 11:46:26 AM #

You completed certain fine points there. I did a search on the topic and found most people will have the same opinion with your blog.

kettleworx dvd
kettleworx dvd Vereinigte Staaten
10/28/2011 4:31:16 AM #

I admire the way you present this topic with us, we can say that you are more knowledgeable on this fields.  Great work, keep it up!

Watch clash of the titans online
Watch clash of the titans online Vereinigte Staaten
11/1/2011 10:09:46 AM #

This is an extremely insightful article. This content makes me feel pensive and I like that. You know it’s good content when you provoke thought in your readers. Thank you.

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading