Thursday, August 25, 2011

Ruby

Ruby, one for quick and easy object-oriented programming (OOP) and create a scripting language, in the 1990s, Yukihiro Matsumoto, developed by the Japanese, to comply with the GPL and the Ruby License. Its inspiration and features from Perl, Smalltalk, Eiffel, Ada, and Lisp language. By the Ruby language itself developed a JRuby (Java platform), IronRuby (. NET platform) and other platforms Ruby language alternatives. Ruby author on 24 February 1993 began to write Ruby, until December 1995 was officially published in fj (newsgroup). Because Perl pronunciation June birthstone pearl with the same, so Ruby to ruby ​​July birthstone name. History Ruby significantly higher than other similar programming languages ​​(such as Perl or Python) young, but also because Ruby is a Japanese invention, the early non-Japanese data and procedures are relatively poor, so now the Internet is still little information can be found in Ruby kind of criticism. About 2000, Ruby entered the United States, information in English began to develop. Idea Reduce programming time and unnecessary trivial time, the programming of the people happy, Matz Ruby language is designed as a primary consideration; followed by good interface design. He stressed that the system must be designed to emphasize human, rather than from the perspective of machine vision. "People, especially computer engineers, often from the machine the sake of their view: 'do so, the machine will be able to run faster; to do so, the machine run more efficiently; to do so, how how how the machine will' actually We need to consider the issue from a human point of view, how people write programs or how to use the application on the machine, we are the masters, they are servants. " Follow the above philosophy, Ruby language is usually very straightforward, according to the programming people think it should run.
 
Ruby is completely object-oriented: data is an object at any point, including in other languages ​​of the basic types (such as: integer, Boolean value), all methods for each procedure or function. The following is a standard output device on the output of a simple Hello World program, this program usually begin to learn programming language as the first program:
 
#! / Usr / bin / env ruby puts "Hello, world!" Feature Completely object-oriented In the Ruby language, everything is an object, including other languages ​​in the basic data types, such as an integer variable has no type Ruby variable can hold any type of data.
 
Nothing has value Whether a mathematical or logical expression or statement, will have a value.

No comments:

Post a Comment