Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails vs ASP.NET MVC 3 for a .NET Guy? [closed]

I am very new to RoR and I want to select between APS.NET MVC3 and RoR. C# is sure easier for me as I have been doing it for so long but I am wondering if there is any point to consider using RoR over .MVC to develop a real world website?

What else do I get with RoR which I can't get with ASP.NET MVC 3 that worth spending the time to master RoR? I though the available community RoR plug-in would be one reason but it does not seem that organized and seems like the learning curve to do the right things is going to be so big that it won't practically save much time for a newby! I could be wrong here and I really appreciate your real-life comment on this? Mind you that I still have to learn ASP.NET MVC but that sounds quick for a .NET Guy!

What could RoR offer to a .NET guy that WORTH picking RoR over ASP.NET MVC 3? and please the practical advices! :)

like image 877
iCode Avatar asked Jun 23 '11 20:06

iCode


1 Answers

They are both fantastic, and can accomplish the same goals very quickly. I used a great book to learn a while back, and it would be right up your alley: Rails for .Net Developers

Also, I wrote a post about going from MVC to RoR a while back as well.

As for comparisons, they both have strengths as has been covered, but here are a few that stick out to me:

  • I really do like RoR's deployment and simple ways to push to live sites - no scripts to run at all, just a bit of command line should get you up and running once the code is actually written. If you choose RoR, UNDERSTAND THE COMMAND LINE COMMANDS - it will make your life so much easier!

  • As you mentioned, the plugins are great, and can really be used to speed things up.

  • As a .Net dev, MVC will be a breeze, I would recommend using Razor, as it is very simple and less cluttered than the old 2.0 non-razor rendering.

  • .Net's EF4 can be compared almost directly to RoR's ActiveRecord, great ORM systems tfor dealing with data.

  • I have found that .Net's documentation is a bit more consistent and thorough.

  • One problem I had with RoR was the rapid and drastic changes; not so long ago, they upgraded to 3.0 on my host, and I did not lock my version - all sorts of stuff broke until I figured out the new stuff (I should have frozen my version).

It is not a clean cut choice - both are great. As you are already a .Net dev, I would guess MVC3 would be the way to go, but both are easy to learn.

like image 149
naspinski Avatar answered Sep 20 '22 15:09

naspinski