Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this questionI like the Rails approa开发者_开发百科ch to web application development quite a bit, but in my current occupation I should like to use .NET technology. What is the premier Rails-style framework in the .NET world? I understand Microsoft has developed ASP.NET MVC as such a framework, but my knowledge of it is totally superficial at this point.
Ease of testing is particularly important to me, I love how you can write testable scenarios for Rails with Cucumber. Testing of Javascript bits should be accounted for as well.
In sum: I'm looking for a .NET alternative that offers the same complete development stack, from end-to-end, you get with Rails :)
You answered your own question. ASP.net MVC is what you are looking for. It is easy to create Unit tests for your controllers, routes, etc.
If you want more information on ASP.net MVC, you can visit www.asp.net/mvc. You might also want to follow the following blogs:
http://haacked.com/
http://weblogs.asp.net/scottgu/
Yes, you are right. ASP.NET MVC 3.0 is the framework you are looking for. And it does offer you the complete stack.
For Cucumber style testing you can use SpecFlow. There are other BDD tools too but SpecFlow is the closest to Cucumber as both are based on Gherkin.
For learning MVC, I would suggest the following tutorials, preferably in the same order:
- The getting-started-with-mvc3-part1-cs video on the official ASP.NET MVC website.
- Next try the Music Store tutorial, once again on the official ASP.NET MVC website. This take things up one notch.
- You can then google for the nerd dinner tutorial. This is a great tutorial but I am not sure if it has been completely updgraded to ASP.NET MVC 3 or not.
- http://www.asp.net/mvc/videos: This has a whole lot of videos. You can see The Storefront video series for an example of how to create a complex website using MVC.
- Lastly, there are some excellent videos (though paid) on tekpub for mastering mvc and building a blog in mvc.
Between these tutorials you will not only just learn the basics, you will also learn Linq2SQL or Entity Framework (ORM), Ninject (Dependency Injection), Moq (Mocking framework), SpecFlow, etc...
In case, you want to try something on your own, you can start with the ASP.NET MVC 2.0 Starter Site released by Rob Conery (from Tekpub) on codeplex. Rob is an expert on both ASP.Net MVC and Ruby on Rails and shares the same concerns as you. While this is in MVC 2.0, it should also work with version 3.
Hope this helps.
精彩评论