Ruby on rails different development experiences

Source: Internet
Author: User
Tags php and ruby on rails

Ruby on Rails is a relatively new framework for WEB applications, and its goal is to provide an easy path for application development. In short, it makes life, or at least Web development, easier. In fact, proponents of the framework claim that the productivity of Ruby on Rails developers is up to 10 times times the use of the traditional Java EE framework. While this sentence creates considerable controversy between rails and the Java EE community, there is little talk about comparing rails and the Java EE architecture. Build on top of Ruby language. It is advertised as an alternative to the existing enterprise framework, a full stack (full-stack), open source Web framework, written in Ruby, that can be used to easily write actual applications and require less code than most frameworks spend on processing XML.

Ruby is an interpretive, user-friendly, object-oriented scripting language, first published by Yukihiro Matsumoto, Japan, on February 24, 1993. It absorbs many features from Perl, Eiffel, and makes it ideal for text file processing and system management tasks, and is fully object-oriented. Its syntax is simple and crisp, extensible and can span platforms. Ruby is completely free and open, meaning that not only can we get it free, but we are free to use, copy, modify, and distribute it.

Ruby on Rails has been in China until the world began to explode, whether in the Java site, search engines, or hot forums, you will see Ruby and Java overlap, and they two like a pair of incompatible friends are compared to each other. Rails is unbelievable! It is extremely powerful and has dramatically changed the face and pace of Web development. Ruby is much richer than Rails, especially from a Java developer's point of view. But Ruby cannot replace Java, and that doesn't mean Ruby isn't worth it.

Even oreilly, a master-level figure who has been supporting Java for years, has begun publishing books on Ruby, leading people away from Java. The discussion is growing in scope, with more and more participants, and even the father of Java, Gosling, is involved in the debate. Java will continue to peak and maintain good performance in enterprise applications, but time will not stagnate. In some sense it will eventually be replaced. We will need a higher level of abstraction. I think our best hope is to make a lot of effort on the JVM, to better support dynamic languages, to embrace new things, and, for the old Java code, it's best to keep a conservative attitude.

These are good languages, but there are some drawbacks. For large applications, PHP and Perl cannot continuously produce readable code. Lisp,python and Smalltalk lack the catalysts that the great language seems to have. But the common understanding is that Ruby is more efficient in development than in Java and C #, and the result is surprising to many developers. It even raises the question: Is there really a better language than Java and C #? But in many discussions, people seem to have a lot less attention. Because of historical relations, many people do not want to discuss this issue, and do not believe that Rudy will become the second Java in China, then Ruby on rails in China's development?

The industry's debate over Java and scripting languages has persisted and never disappeared. In fact, this argument itself has deviated from the original purpose of the topic. As early as half a year ago, the father of Java strongly called for "stop the senseless scripting Flamewar", saying that "In fact, the Java ' Opposition ' PHP, Ruby or other language discussions, are meaningless." ”

Ruby is a good language, and the catalyst (Rails) provides compelling new value (in terms of efficiency) and is still growing fast. Ruby is not necessarily the best language, but it will be the most probable one I have ever seen. Ruby is unlikely to exceed Java. It is likely that it will first get good results in a smaller but important environment. This environment is also a big relational database with a large Web UI.

Ruby on Rails (RoR) is designed to enable you to develop WEB applications very quickly. It does this by following the Convention rather than forcing you to make all the configuration decisions beforehand. Therefore, RoR enables you to develop applications that can be run in a very short time. After you have installed Ruby and the various packages you need, you can create a minimal Web application by running less than six commands and editing a file (database.yml).

Rails specializes in web site development, and most Web sites have been built with Struts, Tapestry, or other technologies. When Ruby is used, it is basically a development practice that joins with the Java platform.

With Ruby on Rails, the development experience is significantly different, for two reasons. First, Ruby on Rails has a core WEB development platform: Ruby on Rails. Second, so far, most of the Ajax development experience on rails revolves around two core frameworks: Scriptaculous and Prototype.rails Method uses Run-time code generation and custom markup, which allows you to ignore complex JavaScript. Now Ruby has become a widely used language.

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.