Home  >  Article  >  Backend Development  >  What is Ruby

What is Ruby

藏色散人
藏色散人Original
2019-01-16 10:36:3519299browse

Ruby is unique among object-oriented scripting languages. In a sense, it is a purist's language for people who like object-oriented languages. Without exception, everything automatically becomes an object, which is not the case in other programming languages.

What is Ruby

#What is an object?

Well, in a sense, you can think of it in terms of building a car. If you have a blueprint, then an object is built from that blueprint. It contains all the properties held by the object (i.e. make, model, color) and the operations it can perform. However, even as a purely object-oriented language, Ruby does not sacrifice any usability or flexibility by omitting features that are not explicitly related to object-oriented programming.

Ruby's architect Yukihiro Matsumoto (known simply as "Matz" online) designed the language to be simple enough for beginning programmers to use, yet powerful enough to give experienced programmers everything they need. tool. It sounds contradictory, but this dichotomy is due to Ruby's pure object-oriented design and Matz's careful selection of features from other languages, such as Perl, Smalltalk, and Lisp.

There are libraries for building all types of applications with Ruby: XML parsers, GUI bindings, network protocols, game libraries, etc. Ruby programmers also have access to powerful RubyGems programs. Compared to Perl's CPAN, RubyGems makes it easy to import other programmers' libraries into your own programs.

The above is the detailed content of What is Ruby. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:what is source codeNext article:what is source code