- 浏览: 227171 次
- 性别:
- 来自: 北京
最新评论
-
lzj0470:
这种方式,带来的问题很大。如:返回一个对象,然后再调用一些办法 ...
自定义classloader加密java程序 -
bushkarl:
JavaScript 胸罩尺寸计算器 -
bushkarl:
...
Ubuntu php 环境配置 -
dearsunkey:
hao !
Ubuntu php 环境配置 -
qskm:
这个怎么用呢?楼主没说清楚啊,
1、 加密的话该怎么加密?直接 ...
自定义classloader加密java程序
在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.
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.
发表评论
-
男士常见肌肤问题及针对方案
2008-06-17 12:54 1335问题一:皮肤就象个大油田,常常看上去油光光的,可是感觉居然还是 ... -
做软件外包就像农民种地一样
2008-06-12 13:23 2209中关 村软件园里,坐落 ... -
MDA-ZZ
2008-05-10 20:20 1236MDA(Model Driven Architectur ... -
男人最帅的39个瞬间 =共勉~
2008-04-20 02:18 10201.不说话的时候。 沉默 ... -
把你的DV作品送到嘎纳去吧
2008-04-08 17:26 1039可能在大多数人眼中, ... -
意大利作曲家维瓦尔第
2008-04-03 10:57 1031意大利作曲家。 167 ... -
NGOSS:下一代网络运营支撑系统
2008-03-27 23:19 1178摘要:首先介绍了NGOSS ... -
给女孩的话:当他不再爱你的时候
2008-03-26 20:16 1309当他不再爱你的时候,不要再给他打电话。你的一句我想你,只能换来 ... -
服务发现ZZ
2008-03-24 10:08 994服务发现:采用自上而 ... -
.NET平台下几种SOCKET模型的简要性能供参考ZZZ
2008-03-17 19:57 1364这个内容在cnblogs中也讨论过很多次了,这两天大概看了一些 ... -
牛仔裤你一定要知道的16条ZZZ
2008-03-06 09:10 9491买牛仔裤,裤腰处留出3 ... -
How to Deal With Out Of Memory Errors(ZZZ)
2008-03-01 09:59 1565These errors are rather commonl ... -
2007浙江高考满分作文之一行走在消逝中
2008-02-11 12:24 1795——loli有三好,身娇 ... -
DOS here
2008-02-02 18:18 1238挺方便的。代码记在这。 引用Windows Registry ... -
UDP tracker protocol
2008-01-29 11:43 2061留存。。以作参考。。 原文:http://xbtt.sourc ... -
IP多播【转】
2008-01-28 21:53 1923IP多播(也称多址广播 ... -
比較Java和C++的總體擁有成本
2008-01-18 13:28 1122BEA公司的白皮書,比較了Java和C++的總體擁有成本 -
人生能有5次就好了
2008-01-17 19:59 1507有好多想做的事情 我想当学校的老师... 也想当宇宙飞 ... -
BGP协议【转载自51cto】
2008-01-16 14:21 1127刚才看streaming的paper,发现自己欠缺的太多了。 ... -
大学的脾气有多大【转自豆瓣九点】
2008-01-13 16:16 1263大学的“脾气”有多大 ...
相关推荐
《Ruby on Rails Tutorial》中文版(原书第2版,涵盖 Rails 4) Ruby 是一门很美的计算机语言,其设计原则就是“让编程人员快乐”。David Heinemeier Hansson 就是看重了这一点,才在开发 Rails 框架时选择了 Ruby...
### Ruby on Rails 101:深入理解与实践 #### 引言 《Ruby on Rails 101》是一本介绍Ruby on Rails(简称RoR或ROR)的基础书籍,旨在为初学者提供一个全面而深入的学习框架。本书由Peter Marklund编写,包含了五天...
Ruby on Rails,简称Rails,是基于Ruby编程语言的一个开源Web应用程序框架,它遵循MVC(模型-视图-控制器)架构模式,旨在提高开发效率和代码的可读性。Rails以其“约定优于配置”(Convention over Configuration)...
Ruby on Rails是一款基于Ruby语言的开源Web开发框架,它遵循MVC(模型-视图-控制器)架构模式,简化了Web应用的开发流程。在Linux环境下安装Ruby on Rails需要一系列的依赖包和步骤,本资源包提供了所需的所有组件,...
《Ruby on Rails 3 Tutorial》是一本专门为初学者设计的指南,旨在帮助读者快速掌握Ruby on Rails这一强大的Web开发框架。Ruby on Rails(简称Rails)是基于Ruby语言的一个开源框架,它采用MVC(Model-View-...
Ruby on Rails,简称Rails,是一款基于Ruby语言的开源Web应用框架,它遵循MVC(Model-View-Controller)架构模式,旨在简化Web应用程序的开发。Rails由David Heinemeier Hansson于2004年创建,它提倡“约定优于配置...
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(以下简称Rails)4.2.5版本的核心功能与最佳实践。 - **基础假设**:...
Ruby on Rails(简称Rails)是基于Ruby编程语言的开源框架,以其“DRY(Don't Repeat Yourself)”和“Convention Over Configuration”原则著称,极大地提高了开发效率和代码可读性。 本书首先会介绍Ruby语言的...
Ruby on Rails,简称Rails,是由David Heinemeier Hansson基于Ruby语言开发的一个开源Web应用程序框架。这个框架遵循“约定优于配置”(Convention over Configuration)的原则,致力于简化Web应用的开发流程,提高...
Ruby on Rails,简称Rails,是基于Ruby语言的一个开源Web应用程序框架,它遵循MVC(Model-View-Controller)架构模式,旨在使Web开发过程更加高效、简洁。本压缩包中的"Ruby on Rails入门经典代码"提供了新手学习...
Ruby on Rails,简称Rails,是一款基于Ruby语言的开源Web应用框架,它遵循MVC(Model-View-Controller)架构模式,旨在提升开发效率和代码的可读性。Rails以其“约定优于配置”的设计理念,以及“DRY(Don't Repeat ...
本书教您如何使用Ruby on Rails开发和部署真正的,具有工业实力的Web应用程序,Ruby on Rails是为诸如Twitter,Hulu,GitHub和Yellow Pages等顶级网站提供支持的开源Web框架。
Ruby on Rails,简称Rails,是基于Ruby语言的开源Web应用框架,它遵循MVC(Model-View-Controller)架构模式,旨在使开发过程更加简洁高效。这个“ruby on rails 教程源码”很可能是为了辅助学习者深入理解Rails的...
Ruby On Rails 框架自它提出之日起就受到广泛关注,在“不要重复自己”,“约定优于配置”等思想的指导下,Rails 带给 Web 开发者的是极高的开发效率。 ActiveRecord 的灵活让你再也不用配置繁琐的 Hibernate 即可...
Ruby on Rails(简称Rails)是基于Ruby语言的开源框架,以其“约定优于配置”(Convention over Configuration)和“Don't Repeat Yourself”(DRY,避免重复)的原则,极大地提高了开发效率。在Rails 4版本中,它...
Ruby on Rails(简称Rails)是一种基于Ruby语言的开源Web应用程序框架,它遵循MVC(Model-View-Controller)架构模式,旨在简化Web开发过程并提高效率。在这个“ruby on rails在线考试系统”中,我们可以探讨以下几...
### Ruby on Rails与Java框架对比分析 #### 一、引言 随着互联网技术的迅猛发展,Web开发领域也迎来了各种各样的开发框架和技术栈。在众多的开发框架中,Ruby on Rails (RoR) 和 Java 的相关框架尤其受到关注。本文...