Ruby, a simple and fast object-oriented (object-oriented programming) scripting language, was developed by Yukihiro Matsumoto in Japan in the 1990s and complies with the GPL and Ruby License. It takes inspiration and features from Perl, Smalltalk, Eiffel, Ada, and Lisp. The Ruby language itself has spawned Ruby language alternatives for Other platforms such as JRuby (Java platform), IronRuby (.NET platform), and so on. The author of Ruby began writing Ruby on February 24, 1993, and did not officially publish it publicly on FJ (newsgroup) until December 1995. Because Perl is pronounced the same as June Birthstone Pearl, Ruby is named after July Birthstone Ruby. Detailed tutorial on Ruby: Ruby complete Tutorial graphic tutorial
Language features:
- Fully object-oriented
- In Ruby, everything is an object, including basic data types in other languages, such as integers
- Variable has no type
- Ruby’s variables can hold any type of data.
- Everything has a value
- Whether it’s a mathematical or logical expression or a statement, it has a value.
- The Ruby language is elegant and can be read without comments.
Advantages:
- Grammar is simple
- Common object-oriented functionality (classes, method calls, etc.)
- Special object-oriented features (mixins, special methods, etc.)
- Operator overloading
- Error handling
- Iterators and closures
- The garbage collection
- Dynamic loading (depends on system architecture)
- High portability. It can run not only on most UNIX, but also on DOS,Windows,Mac,BeOS and other platforms
- Suitable for rapid development, the general development efficiency is 5 times that of JAVA
Ruby is open source and freely available on the Web, but requires a license.
Ruby is a general purpose, interpreted programming language.
Ruby is a true object-oriented programming language.
Ruby is a server-side scripting language similar to Python and Perl.
Ruby can be used to write common Gateway interface (CGI) scripts.
Ruby can be embedded in hypertext Markup Language (HTML).
Ruby’s simple syntax allows new developers to learn Ruby quickly and easily.
Ruby has similar syntax to many programming languages such as C++ and Perl.
Ruby is extensible and large programs written in Ruby are easy to maintain.
Ruby is available for developing Internet and Intranet applications.
Ruby can be installed in Windows and POSIX environments.
Ruby supports many GUI tools, such as Tcl/Tk, GTK, and OpenGL.
Ruby can easily connect to DB2, MySQL, Oracle, and Sybase.
Ruby has a wealth of built-in functions that can be used directly in Ruby scripts.
More excellent courses:
Official website of Ali Yun University (Official website of Ali Yun University, Innovative Talent Workshop under cloud Ecology)