1.2.2 Ruby Introduction and Benefits

Source: Internet
Author: User
Tags ruby on rails

The Ruby language was studied by the Japanese as (まつもとゆきひろ, Yukihiro Matsumoto, nicknamed Matz) from 1993 onwards, with 2 years to go before the first version of the Ruby language: Version 0.95. According to the bank's description: He has always wanted to invent a language, which is a high-profile development, but also allows developers to enjoy the joy of programming.

In fact, Ruby is really a very concise explanatory language, a purely object-oriented programming language, even more pure than Java (in the Java language, there are basic data types, etc. are not object variables, but in the Ruby language, everything is an object). In addition, Ruby offers many additional handy features, such as closures, iterations, and collections, to achieve the dream of the founders of Ruby language: To enable Ruby developers to enjoy programming happiness.

In contrast to the Java language, the biggest specialty of the Ruby language is simplicity. First, it is a weak type of language, the variable does not have to be declared, the variable has no type, so the ruby variable can hold any type of data, second, it also provides strong D regular expression support, and support operator overloading, in addition, Ruby also provides many additional convenient features, such as closures, code blocks, Iterators, collections, and so on.

The Ruby language also has an important advantage: it is also completely cross-platform and can be interpreted and executed on any operating system.

In the 2004, there was an excellent MVC framework in the Ruby language camp: Ruby on Rails, a development framework that was advertised as a substitute for the existing enterprise framework. The Ruby on Rails framework is a truly conscious agile development framework that provides a large number of code generators that can be used to improve the development efficiency of your application by using these code generators.

Ruby on Rails provides a "one-stop-all" solution relative to the Java domain from a multi-development framework, and the Ruby on Rails framework provides solutions such as the MVC framework of the Web layer and the ORM of the persistence layer. With the advantage of the dynamic language of Ruby, the code for the entire application is quite concise, because the development of the Ruby on Rails application is very fast.

There are advantages to the rails framework and the Java EE platform, and the simplicity and ease of use of the rails platform will be more attractive to small and medium-sized applications, but the Java EE platform Car offers more options. A developer who has a precise grasp of the technology needed to solve large enterprise-class applications with complex requirements.

1.2.2 Ruby Introduction and Benefits

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.