RoR explained

sponsored links
ROR is Ruby on Rails. Ruby is a well-known has been very good dynamic language It's dynamic language. Simple and easy. Dynamic languages are interpreted, but the performance may make a discount, but not absolute, because the application is complex, the performance is a comprehensive, this in a test has been to respond to.

In accordance with the Rails4Days.pdf

1. To install and configure surprisingly easy.

Installed ruby182-14.exe, use gem to install rails. ruby are gem of install. gem install rails it. In response to questions when the election y.

2. To generate a web application easier.

ruby rails <directory name>

On the generation of a set of web applications, and database configuration click. config / database.yml, look know configuration.

mysql should be ready to create data sheets.

3. Code Generation

ruby script / generate <type> <name>

MVC can be born in, the framework can also be, as well as WebServices

Generator can also download it too is no less chilling.

When Hibernate3, EJB3 is still there around the time to go around, Spring, Hivemind still there when concealment, MDA and UML is also a time when according to Yunshan fog, ROR has been hard work.

Can code generation, CRUD as long as the sentence, it can be said is very convenient presentation, the volume of generated code is very small, change them easily, use a period of time I feel very close to the business idea, or that human grammar. Display layer or, like most embedded script, type JSP. However, because dynamic languages are very concise, in fact looks more streamlined than the tag.


Whether to support large-scale application?

How many people support it?


In general, people worry about ROR is: Can a long time it? The stability of the procedure? The performance?

Has a performance test, it is said ROR> Hibernate + Spring + Struts, was also more than 15-20%. Dare to say that the total background a bit, particularly since the development of speed to> 10 times more. But forget the URL, google check on the know.

Various frameworks have been tortured for a long time, suddenly found such a refreshing thing, has not used, how can this be the case, DAO always define a Base, and with a find function to write 10, and now, how can such a simple it simply became a casual.

find_all on the list? find (@ params [: id]) directly from the parameters in the query object? Tapestry also from OO, than Hibernate also ORM, this is simply a devil. Can and C interfaces, C go into business-critical. Than the MVC would also like to MVC, the obvious question now is can not be separated from the issue of art, because art can not be such a code to handle the matter.

Object with the database connection more natural, and this let me think of the Delphi, only because of Borland in the control, Object Pascal can be very beautiful, VCL is a complete, ruby the same way?

Ruby looks very much absorbed many of the Java community thought, this is a dynamic performance, if this momentum be maintained, would like to spread the Internet, like php. Although the php now have the feeling of old, but because of the beginning of one of the fresh air it has to survive to the present.

ROR very fit to do applications, rapid application, this does not mean do not fit large-scale applications, because not seen the current large-scale applications, did not dare talk nonsense at the end did not mind. The bottom of the application do not know if suitable, because the bottom of the application in general are often middle-level language world, as the C type, Ruby should be able to enter port, but is unlikely to directly make the bottom bar.

Think of the previous description of Perl, glue, a very true Fool itself can not seem to do , but they can stick together quickly to a thing, if the glue strength enough, and even stick out of a building. Ruby also as this is the glue, the web is now stronger than perl
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of RoR explained

  • Shoes - Construction Ruby client gadget

    Shoes Ruby are cross-platform GUI applications, recently released a new version, it is a very interesting Ruby GUI client, the following are some characteristics of Introduction: 1. Cross-platform support for windows / linux / mac os 2. Very small, t ...

  • Rails command

    In windowsxp install ruby on rails of sqlite3-ruby problem-solving nmake 'nmake' is not recognized as an internal or external command,

  • Workspace run under different Eclipse

    Now do live more and more often required to use eclipse in java and ruby & rails project conducted between the tangential shear from the past, because in the rails project used a coloring Aptana preferences, the results open the java project sour ...

  • JavaScript inheritance

    About JavaScript inherited a small example ... <! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 / / EN" ""> <html> <head> <meta http-equiv="Content-Type" conte ...

  • js page Jump implementation of a number of ways

    The first is: <script language="javascript" type="text/javascript"> window.location.href = "login.jsp? backurl =" + window.location.href; </ script> The second: <script language="javascript"> alert

  • Some interview questions java

    The first is the company give you a chance to meet, it is necessary to know to meet from time to equal the interview, and have a lot of companies to see you at the first time will give you a ready point of doing something trivial, these questions, althoug

  • Ruby on Rails Routing - Simple Examples

    This article contains a list of ruby on rails routing examples. If you find you have any questions please leave a comment. Routes are processed from the top of routes.rb down. If a route is matched it will stop processing the routes.rb file and use that r

  • The EJB3 Persistence

    EJB3 persistence with Hibernate is very similar to the mechanism: Environment: Server: JBOSS5.0 Database: MySQL5.0 1. Set up a data source First of all, in jboss-5.0.0.GA \ server \ default \ deploy, the establishment of a database used to connect the dat

  • hibernate to use the principle of

    The use of hibernate, implementation of data persistence. Has the following several processes. One configuration database connection information. Hibernate.config 2 configuration mapping. 3 use: the use of the process are the following steps: 3.1: Ge ...

  • Servlet brief introduction

    Servlet brief introduction: Servlet is a small application server Are used to complete the B / S architecture, the client requests the response to treatment Platform independence, performance, able to run thread Servlet API for Servlet provides the s ...

blog comments powered by Disqus
Recent Entries
Tag Cloud
Random Entries