I have worked professionally with Ruby on Rails for the past 4 years and definitely consider myself a part of the Ruby community. Before that, however, I was a .NET consultant for many years – in fact I worked with .NET from the early betas and I was very exited about replacing VBScript and classic ASP with C# and ASP.NET. Being at MIX 10 – Microsoft’s conference for developers and designers working with web and mobile technologies – has made me realize both how much the .NET community has changed since I left it – and how much it hasn’t. In this article I outline the differences in culture in the Ruby and .NET development communities as I perceive them, and voice my opinion on what could be changed.
I have a good friend named Oliver Kofoed who is a brilliant .NET developer. Oliver is an entrepreneur and has written the entire backend for Nonoba and Player IO, he has written his own object-relational mapper (ORM), templating system, multiplayer game server, content management system and so on. He has also been toying with several experimental .NET languages over the years (such as Boo) and even worked a bit on one of his own. Oliver is both curious and passionate about development, and he was in fact the one who initially told me about Ruby on Rails – I owe you one, Oliver
I occasionally nudge Oliver about releasing some of his work as open source, but it has yet to happen. I don’t think Oliver mind sharing his stuff with the community, but the fact is that it takes a lot of work to prepare your code for open sourcing, especially if you haven’t build it with that in mind from the beginning. You need to take anything out that’s specific to your own applications, you have to write at least some documentation and you probably also have to make the code a bit more configurable and modular. To make that effort you need to get something in return from the community – you have to be reasonably sure that your efforts will be appreciated and that your peers will respect you for sharing valuable code with them.
The best way to get a name in the Ruby community is to release a piece of open source software that help other people get their work done. Ruby on Rails is a pretty good example of this. In fact, in a typical stack for running a Rails-based website, not a single piece of software is proprietary. From the operating system and programming language, the database and the web server to the web framework, gems and plugins used in the application, everything is free and open source. To be fair, the .NET framework is also free, limited versions of the development IDEs and the SQL server database are free and I believe it is currently even possible to get free hosting on Windows Azure. But none of these things are open source and that makes an important difference in the perception of the importance of open sourcing in the eyes of .NET developers, I believe. When most of your stack is closed source, you don’t see the need to share your own source with anyone else either.
There is of course lots of great open source projects within the .NET community: NUnit, Log4Net, NAnt, NHibernate (I’m not sure why I can only think of ports of open source Java projects right now) and also some great “higher-level” open source projects such as Umbraco. Many of these has existed for a long time, but it’s a relatively new thing that Microsoft has started releasing parts of their own projects as open source with ASP.NET MVC – a web framework that’s essentially a port of Ruby on Rails (minus the ActiveRecord ORM) to .NET done by some of Microsoft’s best developers – as the prime example. This is awesome, and ASP.NET MVC is deservingly winning a lot .NET developers over from the broken notion of “web forms”. I’m not sure how easy it is to build and share plugins for ASP.NET MVC, but hopefully the project will help more .NET developers to realize the value of sharing code. In the Ruby world we have Github for sharing and collaborating on open source projects, and Codeplex might be able to do the same for .NET – or .NET developers could start using git, but that’s a different story.
ASP.NET MVC also endorses test-driven development, which is another key differentiator when comparing the Ruby and .NET communities. To be honest, I think some .NET developers have even harder seeing the value of testing than of open sourcing. They use a static language after all, so the compiler “tests” that all is good, right? Wrong. Even without tests, problems with wrong types and nil-reference exceptions (“null” is called “nil” in Ruby) are usually easily found and fixed in Ruby. What needs to be tested is intend. Business logic. Calculations. Complicated SQL queries. Redirects. The flow of the application. Test-driven development (TDD) forces the developer to think before he acts, and later it gives him the freedom to refactor without the fear of breaking existing functionality. I understand any developer who feel it is a waste of time to write tests after you have written the actual production code – it’s not, but it feels like it. TDD gives the pleasure of accomplishing hundreds of small steps in the fail-pass test cycle every day, and I hope the popularity of the ASP.NET MVC will push .NET developers more in this direction.
I have of course attended all sessions related to Ruby at MIX10 (all three of them), and Microsoft’s prime example of what to use IronRuby (the .NET implementation of Ruby) for seems to be testing. They love to show off RSpec and Cucumber, and yes, those are cool testing frameworks, but will it really make .NET developers write their test code in a language different from the production code? To me, IronRuby is the .NET developer’s chance to spread the love and magic of Ruby in their Microsoft-centric companies, and just like Rails has been the killer app for the traditional C-version of Ruby, I believe this fantastic web framework can also be the driver of a wide adoption of IronRuby. ASP.NET MVC will be the segway for this, because MVC and Rails have so much in common, that when you understand one, you understand them both – provided you also know C# and Ruby, that is.
Yes, I said “the love and magic of Ruby”. If you think it sounds cheesy, that’s because it is, but the fact is that I’ve seen several slides at MIX10 with statements such as “Ruby is love” and “We love Ruby on Rails”. Ruby is a pretty programming language, and Rails is an awesome framework – but really working with Ruby is all about being passionate about programming, being curious about new technology and have a desire to be on the “cutting edge”. I’m not saying that .NET developers are not those things, but I’ll make this claim: The ratio of highly passionate developers actively seeking the cutting edge of software development is higher in the Ruby community than in the .NET community. There is some very simple reasons for this: First of all, the Ruby community is smaller and has a smaller customer base, which leaves less room for … let’s say “average” developers. Second, almost everyone in the Ruby community comes from a different technical background and has made an active choice to switch to Ruby. C# is a language taught in schools, there are certifications and programs, and in some environments I believe you’d hardly even consider the alternatives. This again leaves more room for the “average” developer who is by no means a bad programmer or person, but who is not building and seeking out new things on the cutting edge. To him, programming is more a job than a passion, and he might even do something else with his spare time than sit in front of the computer.
The point I am trying to make is this: Ruby has a community consisting almost entirely of early adopters, while .NET has many followers in the community. This is not necessarily a problem – in fact it can be very pragmatic not to be on the cutting edge. On the other hand, .NET developers are missing out on a lot of the good stuff by waiting for Microsoft to tell them what to do. As an example, my impression from MIX10 is that the javascript framework jQuery is still a very new thing to many .NET developers, while it is something we have used for years in the Ruby community. I was learning about jQuery at a Rails-conference two years ago, and back then I felt I was late in the game. What’s interesting is that Ruby on Rails is in fact pretty tightly integrated with another javascript framework – Prototype (much too tightly in fact, but that has been remedied in Rails 3) – but we were so blown away by the productivity and community surrounding jQuery that we switched anyway. The fact that Rails is open source and that Ruby is a dynamic language that allows any code to be changed, overridden and monkeypatched, allowed someone to quickly release a plugin that modified all places where Rails currently generates Prototype-specific javascript. Sure, ASP.NET MVC is also open source, but if someone wanted to make a fundemental change such as the one in this example, they would probably have to release a separate branch of the framework the with modified code, since a plugin wouldn’t be able to modify the statically typed and compiled code.
The Ruby community is not perfect. Some think we are arrogant. I can think of at least one person about which this is true, and perhaps you think I’m another good example after having read this. I am actually impressed with how humble and down-to-earth the VIP’s of the .NET community seemed to at MIX10. Another thing you could say about us is that we are trying to avoid dealing with real-world problems by going into Ruby. We leave the .NET developers to maintain and extend existing enterprise solutions built on Microsoft technology, while we go out and build entrepreneurial web apps from scratch. Personally, I like being curious, passionate and on the cutting edge, but it might not be for everyone. Are you a passionate developer?
A very insightful and objective post which I really enjoyed reading. It including a lot of things that I had not really thought of before.
As a .NET developer who has had some exposure to the Ruby and Rails it certainly is quite different. I suppose in some ways it is inevitable that .NET tends more to a follower based approach and being a little less innovative.
I thinking you summed it up will with “The ratio of highly passionate developers actively seeking the cutting edge of software development are higher in the Ruby community than in the .NET community”.
Great post! I think there’s more edge developers in the .NET community than you credit it for, most likely because it’s harder to see them due to the huge amount of bread-and-butter devs found.
Like you credit Rails for giving up on prototype, you could also easily give MS credit too in the way they’re pushing jQuery despite their big earlier investment in their own js framework (ASP.NET AJAX).
There’s also plenty of .NET OSS projects on GitHub – for instance the wonderful IoC framework Ninject.
And oh – Umbraco (which btw is located at umbraco.ORG not .COM
) are adding full support for IronRuby in v4.1 coming within weeks – we’re crossing fingers that it’ll help adopt the wonderful language =)
As you say – much have changed over the last couple of years and it’s easy to enjoy working on the .NET platform and find passionate people. Come to my Umbraco CodeGarden conference in June (I’ll give you a free ticket) and you’ll at least find 250 of them
/n
Looking at communities a couple of years ago through the narrow window of web development might have given you the impression that some “language cultures” are more cutting edge than others.
But today you will find pretty much the same Web 2.0 stack in any language you can think of, the syntax might be a little different but the philosophy and techniques are the same. eg. Symfony, Grails, Django, Catalyst, etc. And most of the projects are not that much younger than Ruby on Rails. So it might seem to suggest that what really differs is the loudness/hype rather than actual technical difference.
Moving away for web development Ruby also quickly seems to fade when it come to active development and cutting edge, here “old” languages like C, C++, Objective-C, Java and C# make up a large portion of the interesting stuff being developed, just look at some of the Open Source desktop projects, the mono project, android, object db’s like facebooks Cassandra or many of the other projects that litter source forge, github and google code.
Also as communities borrow the cool “cutting edge” stuff from each other, programming language matters less and less as the same frameworks appear in J-versions, N-versions and more fancy-named alternatives in each language.
So for me at least cutting edge has very little to do with language, OS, software stack or how many times you can sneak social, web 2.0 or restfull in to the description of your new web app. What does matter is how novel and different the thing you are trying to build is, not what tools you use.
@Norman: Thanks a lot for your comment. I don’t know about objective, but I try to be fair at least
What sums it up best for me, though, is this sentence: “NET developers are missing out on a lot of the good stuff by waiting for Microsoft to tell them what to do.”
@Hartvig: Thanks. I’m glad to hear so much good stuff is going on in the .NET community. I’ve heard many good things about Umbraco, and IronRuby support sounds awesome – I’ve also fixed the link, sorry about that
Umbraco CodeGarden sounds cool – I’ll mail you
@Troels: I agree with a lot of your points, and you are right that Ruby – as a slow, interpreted scripting langauge – are not being used much for non-web development. I don’t think web development is a “narrow window”, though – everything is flowing together these days; desktop, mobile, gaming and web are all intermingled. You are absolutely right that what you build matters much more than the tools you use, but try and say that to a .NET developer – I don’t think many of them will touch e.g. IronRuby before it’s supported in Visual Studio
Very good points, and I think you’re right in your characterization of both cultures. Of course there are exceptions in .NET-land, but none that really gain enough traction to become the big killer app that everyone knows about in the way that Rails is for Ruby. Not because such projects are not developed, but because the community as a whole isn’t really paying attention to them.
For a project/library/framework to really become mainstream in .NET, it pretty much has to be released by Microsoft.
Like Casper said, .NET supports a huge number of languages, but the only ones that the mainstream developers use are the ones supported directly by Visual Studio. Anyone could have used a MVC framework for their web development projects, but it didn’t actually take off and become commonplace until Microsoft released ASP.NET MVC.
Individual .NET developers might be every bit as passionate and curious as Ruby developers, but they’re not the ones defining the .NET community as a whole.
I think the “conservatism” you see in the .NET community can be found in all language communities. Try asking a Rails developer if PHP, Java or Python might have been a better base for that new CMS/Social website he/she is building or even just another MVC for Ruby, and you will hear a long list of technical reasons for why PHP is the worst language ever invented, how coding Java slows development and kills creativity and how Python ugly and horrible syntax makes it a pain to code, etc.
Much of it might be true from that developers point of view, but the fact is PHP, Java and Python have been the tools of choice for most of the big and innovative web successes. fx. MySpace, Facebook, everything Google, Wikipedia, etc.
But does that mean you have to code in PHP, Java or Python to write innovative web apps? At least i don’t think so, most of the common used dynamic languages are very similar in concept and ability and the same is true for the typed ones. So i would argue that most of these sites could have been written in pretty much any language and what makes the special was a good idea, timing and a good bit of luck.
So suggesting you can measure “cutting edge” by language choice seems a bit off to me, unless you suddenly start to code Perl 6, Google go, Scala or some of the newer languages that try to change the concepts or how we code I don’t think you can claim language as the reason for being “cutting edge”.
My point about web development as a “narrow window” is in relation to the front end focus most web developers have. For example looking at Rails sites like Github and Twitter; is it because of Rails both sites “innovated” in their field? For me in both cases what makes them special is the back end, Github would be quite useless without git and so would Twitter without a good message queue(written in Scala).
Front end web development is as mainstream as it gets, pretty much all languages have a frameworks with MVC, ORM, AJAX, etc. So ruby or C# does not really make that much of a difference in how things are built.
So for me at least back end, mobile platforms and development tools is where you can be cutting edge today.