English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Ruby Introduction

Ruby is a pure object-oriented programming language. It was created by Yukihiro Matsumoto (まつもとゆきひろ) from Japan./Yukihiro Matsumoto (松本行弘) created1993year.

You can find more information at www.ruby-You can find Matsumoto Yukihiro (まつもとゆきひろ) on the Ruby mailing list at lang.org./The name of Yukihiro Matsumoto (松本行弘). In the Ruby community, Matsumoto is also known as Matz.

Ruby is the 'best friend of programmers'.

The features of Ruby 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's syntax is much easier than using Smalltalk's syntax.

Features of Ruby

  • Ruby is open source and freely available on the Web, but requires a license.
  • Ruby is a general, 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 has a simple syntax, which makes it easy for new developers to learn Ruby quickly and easily.
  • Ruby and C++ It has similar syntax to many programming languages like Perl.
  • Ruby is highly extensible, and large programs written in Ruby are easy to maintain.
  • Ruby can be used to develop 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 a database.2MySQL, Oracle, and Sybase.
  • Ruby has a rich set of built-in functions that can be used directly in Ruby scripts.

Tools you need

To run the examples discussed in this tutorial, you need at least 2GB (recommended to be 4GB) Intel Core i3 or i5 computer. You also 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 5or higher Web browsers
  • Ruby 1.8.5

This tutorial will introduce how to use Ruby to create GUI, network, and web applications. It will also discuss how to extend and embed Ruby applications.

What will be learned next?

The next chapter will introduce where you can obtain Ruby and its documentation. Finally, it will guide you on how to install Ruby and configure the environment to prepare for developing Ruby applications.