Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1283013
  • 博文数量: 3010
  • 博客积分: 10011
  • 博客等级: 上将
  • 技术积分: 30431
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-27 11:53
文章分类

全部博文(3010)

文章存档

2008年(3010)

我的朋友

分类: LINUX

2008-05-27 13:42:36

Ruby1 is an open source programming language that was released in 1995. Ruby is ranked 10th in the TIOBE Programming Community index2. Ruby on Rails3 is an open source web framework that was released in 2004. Ruby on Rails is being widely adopted because of its simplicity, maintainability and development speed. Computerworld4 lists Ruby on Rails as the one of the top 5 technologies for 2007.

Ruby is often compared with PHP, which is the most commonly used scripting language, and with Java, which is the most commonly used programming language. In the trends graph of TIOBE index you might notice that since the middle of 2006 Ruby shows an increase in usage while PHP and Java show a decrease in usage. OReilly Radar5 has noted the trend towards an increased usage of Ruby on Rails. Statistics aside, Ruby on Rails has some advantages over PHP, which are discussed below.

1. Ruby on Rails is more object-oriented than PHP, thus providing all the inherent advantages of an object-oriented language such as simplicity, modularity, modifiability, extensibility, maintainability and re-usability.

2. Ruby on Rails is web framework whereas PHP is only a scripting language.

3. Ruby on Rails includes a web server for development, whereas a web server has to be installed for PHP.

4. Ruby on Rails implements the Model-View-Controller (MVC) architecture, whereas the MVC architecture has to be implemented externally in PHP.

5. Ruby on Rails framework provides the Create-Read-Update-Delete (CRUD) functionality, PHP doesn’t.

While Java has advantages over Ruby on Rails in scalability, security,

transaction management and availability of development tools, Ruby on

Rails has advantages over Java in simplicity, development speed, and

maintainability. Ruby on Rails provides a tightly coupled web framework

consisting of a persistence framework, a web application framework, and

a Web Services framework. The J2EE application framework is not as

seamless as Ruby on Rails and requires much more configuration. Ruby on

Rails also has the advantage of being dynamically typed, while Java is

statically typed.

While a number of books have been published on Ruby on Rails, none of the books compare Ruby on Rails with PHP and very few compare

Ruby on Rails with Java.

Ruby on Rails for PHP and Java Developers 下载地址
阅读(210) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~