Update: here is a follow-up to this article, written two years later.
You won’t be reading any Ruby on Rails bashing in this blog post for a simple reason: I love Ruby and I love Ruby on Rails.
Rails is a fantastic framework built on a wonderful language that appealed to me the very first day I started to study it. I think David did a fantastic job in two areas:
- Coming up with innovative ideas that take Web programming to a new level.
- Leveraging the strength of Ruby to achieve his goal.
To tell the truth, the Pick Axe and Agile Web Development with Rails books are the best two technical books I have read these past years. I read quite a few technical books, but none has caught my interest and made me look forward to resuming my reading more than these two books. And to top it all, features such as Headless Applications, as illustrated in this blog post by Mike Clark, clearly show how powerful Rails is.
There is no denying that Ruby on Rails is turning the Web programming world on its head.
Now that this introduction is out of the way, I’d like to take some time to explain why, in spite of all its qualities, Ruby on Rails will never become mainstream.
As you probably guessed, my conviction doesn’t come from technical grounds.
The truth is that there are a lot of forces involved in making a Web framework successful, but before I dive into those, allow me to tell a little side story.
Have you ever come across Smalltalk or Lisp programmers? You know, these people who, no matter what you tell them, will always respond that "Smalltalk did that twenty years ago" or that "Nothing has been invented since Lisp". They listen to you patiently with an amused light in their eyes and when you’re done talking, they will just shrug away your points and kindly recommend that you read up on a thirty-year old technology that was the last thing they ever learned and that has been dictating every single technical judgment they have offered since then.
I believe that in ten years from now, people will look back at Ruby on Rails and will have the same reaction. I’m not sure what Web frameworks we will have by then, but I’m quite convinced that a lot of the current Ruby on Rails fanatics will have the same kind of attitude: "That’s nice, but Ruby on Rails already did this ten years ago, and better".
Interestingly, they might even be right. But by then, it won’t matter because despite its technical excellence, Ruby on Rails will still be a niche technology that only experts know about.
So why do I think that Ruby on Rails will never cross the chasm?
- First of all, Ruby.
Again, and at the risk of repeating myself: I love Ruby. I truly do. It’s one of the few languages that I have studied these past years that made me go "Yeah!" whenever I read about a feature I didn’t know of yet. I find its syntax and concepts extremely elegant and powerful at the same time. I don’t like everything about it, of course, but Ruby is by far the number two language in my toolbox behind Java, with number three far, far behind. But it’s a complex language that contains a lot of advanced idioms which will be very hard for PHP and Visual Basic programmers to absorb.
Admittedly, PHP and Visual Basic are cheap targets (we’re talking about languages that don’t even have name spaces!), but like it or not, they are the Web standard. Anyone who wants to succeed in the Web arena must have a compelling story to tell to these programmers, something that will convince them to switch to Rails on technical grounds but that will also be an easy sell to their management. Rails can’t succeed without these two conditions, and I am predicting that Ruby — and Ruby on Rails — will always remain a tough sell to any organization that contains more than ten people.
- Ruby on Rails itself.
Ruby on Rails is just too advanced. I’m serious. It has an incredible amount of slick features involving a lot of magic (both Ruby-related and invented by David himself). For talented developers, these features are a dream come true… autowiring of the MVC, scaffolding, defaults over configuration, unit tests (even integration tests now, nice!), you name it. David hit every single pain point that Web developers (regular developers even) have been facing these past years. Ruby on Rails in itself is a great example of how to nicely package what we have learned about software development these past five years.
But it’s still a very wide gap for corporate developers to cross. Sometimes, too much magic is too much magic, and it can definitely be the case that the flow of code is too direct or too clever to be understandable by regular developers. Developers were able to do the jump from imperative to object-oriented programming, but it was a hard fight. I don’t believe the Web world will ever be ready to embrace the Rails cleverness.
- Still no credible IDE.
All fanatics of dynamic languages are quick to point that they don’t need an IDE to use Ruby, Python, Groovy or other. And they will quickly add that if you need one, you’re probably not being rubyic or pythonic enough and that you should probably switch back to your old language and leave the grown ups alone.
This is nonsense. Ignore these people, they don’t understand how the real world works and how developers think, and they are one of the reasons why so many great technologies never make it to the mainstream. Don’t ever be ashamed to need an IDE or to ask for one. Of course, there are bad ways to use an IDE (e.g. you want code generated for you) but if you are interested in Ruby on Rails, chances are that you are a decent developer and you know how to leverage an IDE to make you more productive than when using emacs. Code completion or navigation, debugging, refactoring, project management, source control integration, etc… there are too many features to list that make you more productive if you use a tool that enables them.
This is 2006, not 1996. The programs we are writing and the problems we are solving every day are orders of magnitude harder than back then, and our tools need to keep up with that need. Emacs is a fine text editor, but it’s no longer adequate for modern development.
- Fanaticism.
Regular readers of my blog know how strongly I feel on this topic. There are exceptions, of course, but the attitude of Ruby on Rails users toward Ruby skeptics or critics has been less than kind. This is a crowd convinced that it has found the ultimate answer to everything, and they are not afraid to let you know. I only have a simple advice for these people: you might be right, but just be humble. It never hurts.
- Crowd of a single mind.
If you want to write a Web application in Ruby, there is only one solution. Only one. Ruby on Rails.
Ruby on Rails has pretty much nuked the field of Web development in Ruby, and I wonder if it’s such a good thing. For all the flak that Java receives because you can count at least a dozen different Web frameworks, there is something to be said about plurality and the constant chase for something better and different. Each framework that comes out builds on the strengths of its ancestors while discarding the errors (and committing a few mistakes of its own, of course). The field advances a little bit every time while bowing down to the timeless laws of natural selection.
I am worried that Ruby on Rails will do to the Ruby world what JUnit did to Java: a great tool when it came out but which condemned its community to an ice age where no innovation or competition appeared for years. Whatever the fate of Ruby, I hope its fans will keep an open mind and will constantly challenge the Rails way, for the simple reason that it’s always healthy to question what’s in place, no matter how good it looks.
- Enterprise capabilities and scalability unclear.
This is an argument that the Rails crowd doesn’t take well, and they are quick to point out BaseCamp and other products. The problem is that by now, there should be other obvious success Rails stories, and not just ones developed by the Rails Society. Of course, it’s a chicken and egg problem: a lot of companies evaluate Ruby on Rails but will only take the jump if they can find evidence that other companies have done that before them. And for now, the evidence is scarce at best.
Granted, Java took a while to rise to the enterprise challenge as well, and it did so despite tremendous initial handicaps such as poor performances and questionable specifications. I contend that until Rails goes through its own EJB2 debacle, it won’t be seen as enterprise ready.
- Lack of support from Internet Providers.
What’s the big deal with this, you ask? After all, Java is hardly supported by Internet Providers as well. The big difference is that Java on the server is targeted at the enterprise. Anyone who wants to run a Java EE application will most likely host their own servers.
Ruby on Rails is targeting a different population: the "Web sites in-between", these sites that are not massively scalable but still have more than a few visits per day. A lot of these people use external hosting, and they won’t go very far if Rails is not offered natively and pre-installed for them. PHP is a no-brainer for them, because it’s installed virtually on 99% of Internet Providers.
Of course, a little bit of .htaccess magic will allow you to run your own Rails application, whether your provider supports it or not, and assuming that they give you that amount of privileges and that you don’t need to scale too high, but until Ruby on Rails achieves at least half of the PHP penetration, it will remain inaccessible to most of the population it needs to become mainstream.
Note that I didn’t say anything about poor error reporting, weak internationalization support or Active Record, which are usually the areas where Ruby on Rails is the most criticized. I’m not worried about these because they are simply a symptom of Ruby on Rails’ youth. They will be fixed in time, and I don’t think they will play a big role in Ruby in Rails’ acceptance (or lack thereof).
So there you have it. My prediction on Ruby on Rails in one, lengthy post. I apologize for the size of this article, I usually try to keep my blog entries short and to the point. I hope at least that I achieved the latter.
I’ll conclude on a positive note: I hope I’m wrong. I really, sincerely do. For my next work, I want to have a choice between Java and Ruby, but right now, when in doubt, even I usually end up returning to Java for my personal projects for the reasons listed above.
And as you know, I love it when frameworks and languages compete for my business. But right now, I see no competition.
#1 by Evan David Light on November 7, 2007 - 2:53 pm
Fast forward 1.5 years from this article’s publishing:
- Merb 0.4
- Sequel, DataMapper, Ambition
- JRuby 1.1
- Official Netbeans Ruby Support
- OS X 10.5 XCode support for Ruby
Rails has not “nuked” anything — except perhaps to steal some of the bright minds from the Java world and import them into the Ruby community. As with all development frameworks, the lessons learned from one feed into the successors.
- Merb leverages many of ActionPack’s strengths while making up for its shortcomings.
- Sequel provides simple ORM without as much of the complexity/magic of ActiveRecord.
- Ambition is beginning to pull us away from SQL altogether by permitting the querying of data using plain Ruby syntax.
Rails has no more stymied Ruby innovation any more than applets initially did for Java. Rails showed us the possibilities of Ruby. As more people continue to contribute to the community, Ruby’s potential will only be further realized.
In other words: it’s all good.
#2 by kadoudal on January 14, 2008 - 6:18 am
came into this blog by inadvertance…
some good point…
not the one about Ruby… I don’t believe Java is easier to learn… scarce resources of above average Java programmers for Enterprises dev => these corps now accept web apps in PHP , worst !!!
#3 by dacha on February 15, 2008 - 12:34 am
How many are secretly wishing their company would allow them to embrace it?
#4 by dacha on February 15, 2008 - 12:35 am
How many are secretly wishing their company would allow them to embrace it?
#5 by Nuno Job on March 4, 2008 - 2:16 am
Great blog post. Congrats
#6 by pradheep on March 9, 2008 - 9:28 am
I am working as a software developer . but now i want to change the company. i am looking for the company that are working under Ruby on Rails. please tell what are companies working under Ruby on rails in india
#7 by scotty on April 11, 2008 - 6:53 am
Two things make web environment mainstream
- abundant c-h-e-a-p good shared hosting
or
- being enterprisy
#8 by jb on April 11, 2008 - 6:57 am
Just curious, now that two years have passed, do you still feel accurate in your prediction that Rails would not become mainstream?
The reason I ask is that it seems pretty mainstream to me,as I watch large, stodgy organizations adopting it for large-scale projects. And the various service providers who offer hosted Rails platforms, etc.
#9 by cjh on April 11, 2008 - 3:08 pm
I suspect one reason RoR won’t go mainstream is because of Groovy and Grails. The existing huge Java-based crowd of web developers are more likely to move to something that looks like what they’re used to and which can even transparently use all their existing code base.
Plus Grails has the advantage of going second; it can learn from RoR’s mistakes as well as its insights.
#10 by JALexoid on April 12, 2008 - 11:27 am
Since now is 2008 and the post is 2006.
This is ironic. Since the comments are still valid. That means “Crowd of a single mind.” IS TILL a problem. You still have a ton of issues. Sure the scalability has somewhat been proved to be acceptable at least.
#11 by Koder on April 12, 2008 - 5:37 pm
Ruby sucks compared to Python. No decent sys admin will touch Ruby, and you can’t use it for the web because it’s not enterprise like Java and PHP.
#12 by Arvind Gupta on April 13, 2008 - 5:48 am
Thanks for writing this article. I agree with you. Now question is this that what should be done to make ROR mainstream.
#13 by Tom on April 13, 2008 - 9:06 am
My reasoning for Ruby never really being use in critical applicatoin is this silly reason: We had some of the Ruby guys come down to Citigroup to give a demo, I learned several things from that demo:
- Like all American companies, they are leveraging their business contacts for both demo and purchasing.
- Even though Ruby is suppose to be SO EASY, the demo guy had to setup the code before the visit and the code still crashed
- The people who will make money from this scritping language is the company that owns Ruby and can market it well and the other benfetitors will be the bool writers
I wish all of you Ruby developers the best of luck, but I’ll be about six months behind you cleaning up the Ruby mess and using Java Enterprise.
Regards,
Tom
#14 by Barcode Generator on November 24, 2008 - 8:38 pm
Linear barcodes creator application is used for reading and scanning barcode of toys, snacks, books etc.
#15 by Data Recovery Prices on November 26, 2008 - 2:06 am
MMC Mobile DV card data rescue tool recover lost office document file and folder.
#16 by Anirudh Vyas on December 3, 2008 - 8:49 pm
One of the reasons so given is wrong, Ruby works like a charm on Eclipse IDE, RDT or DLTK are available for usage.
Regards
Vyas, Anirudh
#17 by marin on January 2, 2009 - 1:51 pm
interesting article, so is it worth learning ruby on rails or should i stick to php? thanks for this article… youclash.com
#18 by Silk Plants on May 4, 2009 - 9:39 am
thanks for sharing those new learning , now i know, well said, about your post
#19 by Matt Simpson on October 7, 2009 - 9:09 am
Silk, please note that this article, however beautifully written and true was written more than 3 years ago. Technology is fast, DHH and the developers of Ruby on Rails has been very focused on tackling all mentions of “why rails won’t last” and I think they are doing a great, great job!
This is an excellent post, but he was talking about the ‘Current’ Ruby on Rails when the post was written, Ruby on Rails has come a long way since 2006. If you are posing the question of “Is it worth learning ruby on rails” then read up on some blogs, but read the date FIRST, if it’s more than a year old move on to the next post.
I used to be a PHP programmer, have worked with ASP and JSP and Ruby On Rails is hands down worth looking in to and getting your hands dirty for.
My advice to you, and all others who read this post is to make sure you look at the date of the blog post!
If I were you, I would check out the “What Killed Smalltalk Could Kill Ruby Too” presentation at the 2009 Railsconf.
put this guy in your address bar:
railsconf.blip.tv/file/2089545/
Very cool how the ruby on rails developers and leaders are very open about this with knowledge that talking about it is much more h3althier.
At the time, this was a great post, but it is fortunately outdated and addressed
#20 by asj on October 9, 2009 - 12:58 pm
RoR is already outdated and dying. Just a look at the state of the market report of O’reilly and you’ll see that Ruby book sales have dropped by more than 50% since 2008 (!), even though book sales of ruby are just a fraction of Java or PHP. The anticipated migration of PHP developers to Ruby just never happened. RoR is stagnant before it even became a top languge or platform!
#21 by Search Engine Optimization Dallas on November 11, 2009 - 6:39 am
Great article Cedric!
I have just recently begun to be interested in Ruby on Rails and I feel the same convictions. I really see the power of the RoR infrastructure. However, I am very new at this and I am running into quite the headache to find hosts that support RoR and then to actually get my application up and going. It is much more complicated than PHP.
Keep up the good work!
~Nick Swanson~
swansonseoservices.com