Ruby 简明教程
Ruby - Overview
Ruby 是一种纯粹的面向对象的编程语言。它于 1993 年由日本的 Yukihiro Matsumoto 创建。
Ruby is a pure object-oriented programming language. It was created in 1993 by Yukihiro Matsumoto of Japan.
您可以在 www.ruby-lang.org 上的 Ruby 邮件列表上找到 Yukihiro Matsumoto 的名字。Matsumoto 在 Ruby 社区中也被称为 Matz。
You can find the name Yukihiro Matsumoto on the Ruby mailing list at www.ruby-lang.org. Matsumoto is also known as Matz in the Ruby community.
Ruby is "A Programmer’s Best Friend".
Ruby is "A Programmer’s Best Friend".
Ruby 具有类似于 Smalltalk、Perl 和 Python 的特性。Perl、Python 和 Smalltalk 是脚本语言。Smalltalk 是一种真正的面向对象语言。Ruby 和 Smalltalk 一样,也是一种完美的面向对象语言。使用 Ruby 语法比使用 Smalltalk 语法更容易。
Ruby has features that are similar to those of Smalltalk, Perl, and Python. Perl, Python, and Smalltalk are scripting languages. Smalltalk is a true object-oriented language. Ruby, like Smalltalk, is a perfect object-oriented language. Using Ruby syntax is much easier than using Smalltalk syntax.
Features of Ruby
-
Ruby is an open-source and is freely available on the Web, but it is subject to 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 into Hypertext Markup Language (HTML).
-
Ruby has a clean and easy syntax that allows a new developer to learn very quickly and easily.
-
Ruby has similar syntax to that of many programming languages such as C++ and Perl.
-
Ruby is very much scalable and big programs written in Ruby are easily maintainable.
-
Ruby can be used for developing Internet and intranet applications.
-
Ruby can be installed in Windows and POSIX environments.
-
Ruby support many GUI tools such as Tcl/Tk, GTK, and OpenGL.
-
Ruby can easily be connected to DB2, MySQL, Oracle, and Sybase.
-
Ruby has a rich set of built-in functions, which can be used directly into Ruby scripts.
Tools You Will Need
要执行本教程中讨论的示例,您需要一台最新计算机,如带至少 2GB RAM 的英特尔酷睿 i3 或 i5(建议使用 4GB RAM)。您还需要以下软件 −
For performing the examples discussed in this tutorial, you will need a latest computer like Intel Core i3 or i5 with a minimum of 2GB of RAM (4GB of RAM recommended). You also will need the following software −
-
Linux or Windows 95/98/2000/NT or Windows 7 operating system.
-
Apache 1.3.19-5 Web server.
-
Internet Explorer 5.0 or above Web browser.
-
Ruby 1.8.5
本教程将提供使用 Ruby 创建 GUI、网络和 Web 应用程序所需的技能。它还会讨论扩展和嵌入 Ruby 应用程序。
This tutorial will provide the necessary skills to create GUI, networking, and Web applications using Ruby. It also will talk about extending and embedding Ruby applications.