Ruby on Rails

Source: Internet
Author: User

I have seen several articles about Ruby on Rails (ROR) recently.ArticleYou can't help but download a copy of it to try it out.

The reference document creates a very simple system and does not take much time, mainly because the scaffold function provides the default web interface. To modify this interface, you only need to modify one or two parts of the configuration, but you must hand-Write A. rhtml template file. There are manyCodeIn addition, Ruby code and HTML code are very cross-cutting, and there is not much difference with ASP. Of course, I think this step cannot be avoided by using any framework. I have read some articles saying that the development efficiency of ROR is ten times higher than that of struts.

Ror another way to improve development efficiency is to make a lot of assumptions to replace the configuration file. For example, the control file is placed in the Controller directory, and the model files are placed in the model directory, the URL ing controls the First Half of the file name, the correspondence between the database table name and the model, and so on. I agree with this method. First, it saves time to write a bunch of xml configuration files, and second, anyone familiar with ror can quickly find the desired class.

Because I am not familiar with Ruby, it is difficult to read the code in the. RB file. Ruby is an interpreted language, which has some syntactic conveniences, such as the expression of variables. It is also a thorough object-oriented language, and even the number 123 is an object; third, skip the compilation step,Source codeThe modification can take effect immediately (this effect can also be basically achieved in the incremental compilation of eclipse). The disadvantage should be that it is mainly about performance, and I think it may not be as good as JSP.

After using a language for a long time, I always want to change the taste occasionally. Java is my favorite language, and I am very excited to Master many languages. When I encounter problems, I should first consider which language to implement. After all, each language has its own expertise. Continuing to study Ruby, maybe it will become another shot of mine.

In addition, RDT is an Eclipse plug-in developed by Ruby, but it does not seem to have special support for ror. In addition to the editor of The. RB file, it also integrates a regular expression verification tool. It seems Ruby is also quite good at this aspect.

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.