`
tiantian911
  • 浏览: 227171 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Why Ruby on Rails won't become mainstream【转】

 
阅读更多
在tss看到的,原帖地址是:
http://beust.com/weblog/archives/000382.html

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 楼 charon 2008-01-28  
这个是将近两年前的帖子,难道现在流行翻老贴?

相关推荐

    Ruby on Rails Tutorial

    《Ruby on Rails Tutorial》中文版(原书第2版,涵盖 Rails 4) Ruby 是一门很美的计算机语言,其设计原则就是“让编程人员快乐”。David Heinemeier Hansson 就是看重了这一点,才在开发 Rails 框架时选择了 Ruby...

    ruby on rails 101

    ### Ruby on Rails 101:深入理解与实践 #### 引言 《Ruby on Rails 101》是一本介绍Ruby on Rails(简称RoR或ROR)的基础书籍,旨在为初学者提供一个全面而深入的学习框架。本书由Peter Marklund编写,包含了五天...

    ruby on rails最新版

    Ruby on Rails,简称Rails,是基于Ruby编程语言的一个开源Web应用程序框架,它遵循MVC(模型-视图-控制器)架构模式,旨在提高开发效率和代码的可读性。Rails以其“约定优于配置”(Convention over Configuration)...

    Ruby on Rails安装包全集(Linux)

    Ruby on Rails是一款基于Ruby语言的开源Web开发框架,它遵循MVC(模型-视图-控制器)架构模式,简化了Web应用的开发流程。在Linux环境下安装Ruby on Rails需要一系列的依赖包和步骤,本资源包提供了所需的所有组件,...

    ruby on rails 3 tutorial.pdf

    《Ruby on Rails 3 Tutorial》是一本专门为初学者设计的指南,旨在帮助读者快速掌握Ruby on Rails这一强大的Web开发框架。Ruby on Rails(简称Rails)是基于Ruby语言的一个开源框架,它采用MVC(Model-View-...

    Ruby On Rails中文教材(PDF)

    Ruby on Rails,简称Rails,是一款基于Ruby语言的开源Web应用框架,它遵循MVC(Model-View-Controller)架构模式,旨在简化Web应用程序的开发。Rails由David Heinemeier Hansson于2004年创建,它提倡“约定优于配置...

    ruby on rails for dummies

    Ruby on Rails(简称Rails)是基于Ruby编程语言构建的一个开源Web应用程序框架,它遵循“约定优于配置”(Convention over Configuration, CoC)的原则,以及“Don't Repeat Yourself”(DRY)的设计理念,极大地...

    Ruby on Rails Guides v2 - Ruby on Rails 4.2.5

    ### Ruby on Rails Guides v2 - Ruby on Rails 4.2.5 #### 一、重要概念及基础假设 - **重要概念**:本指南旨在帮助读者深入理解Ruby on Rails(以下简称Rails)4.2.5版本的核心功能与最佳实践。 - **基础假设**:...

    Ruby on Rails入门权威经典

    Ruby on Rails(简称Rails)是基于Ruby编程语言的开源框架,以其“DRY(Don't Repeat Yourself)”和“Convention Over Configuration”原则著称,极大地提高了开发效率和代码可读性。 本书首先会介绍Ruby语言的...

    Ruby on Rails实践

    Ruby on Rails,简称Rails,是由David Heinemeier Hansson基于Ruby语言开发的一个开源Web应用程序框架。这个框架遵循“约定优于配置”(Convention over Configuration)的原则,致力于简化Web应用的开发流程,提高...

    Ruby on Rails入门经典代码

    Ruby on Rails,简称Rails,是基于Ruby语言的一个开源Web应用程序框架,它遵循MVC(Model-View-Controller)架构模式,旨在使Web开发过程更加高效、简洁。本压缩包中的"Ruby on Rails入门经典代码"提供了新手学习...

    Ruby on Rails中文指南

    Ruby on Rails,简称Rails,是一款基于Ruby语言的开源Web应用框架,它遵循MVC(Model-View-Controller)架构模式,旨在提升开发效率和代码的可读性。Rails以其“约定优于配置”的设计理念,以及“DRY(Don't Repeat ...

    Ruby on Rails教程:学习使用Rails进行Web开发Ruby on Rails Tutorial: Learn Web Development with Rails

    本书教您如何使用Ruby on Rails开发和部署真正的,具有工业实力的Web应用程序,Ruby on Rails是为诸如Twitter,Hulu,GitHub和Yellow Pages等顶级网站提供支持的开源Web框架。

    ruby on rails 教程源码

    Ruby on Rails,简称Rails,是基于Ruby语言的开源Web应用框架,它遵循MVC(Model-View-Controller)架构模式,旨在使开发过程更加简洁高效。这个“ruby on rails 教程源码”很可能是为了辅助学习者深入理解Rails的...

    提升Ruby on Rails性能的几个解决方案

    Ruby On Rails 框架自它提出之日起就受到广泛关注,在“不要重复自己”,“约定优于配置”等思想的指导下,Rails 带给 Web 开发者的是极高的开发效率。 ActiveRecord 的灵活让你再也不用配置繁琐的 Hibernate 即可...

    Ruby on Rails 4 Tutorial 中文版

    Ruby on Rails(简称Rails)是基于Ruby语言的开源框架,以其“约定优于配置”(Convention over Configuration)和“Don't Repeat Yourself”(DRY,避免重复)的原则,极大地提高了开发效率。在Rails 4版本中,它...

    ruby on rails在线考试系统

    Ruby on Rails(简称Rails)是一种基于Ruby语言的开源Web应用程序框架,它遵循MVC(Model-View-Controller)架构模式,旨在简化Web开发过程并提高效率。在这个“ruby on rails在线考试系统”中,我们可以探讨以下几...

    Ruby On Rails(PDF)

    ### Ruby on Rails与Java框架对比分析 #### 一、引言 随着互联网技术的迅猛发展,Web开发领域也迎来了各种各样的开发框架和技术栈。在众多的开发框架中,Ruby on Rails (RoR) 和 Java 的相关框架尤其受到关注。本文...

Global site tag (gtag.js) - Google Analytics