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

Ruby Introduction

Ruby è un linguaggio di programmazione orientato agli oggetti puro. È stato creato da Yukihiro Matsumoto (まつもとゆきひろ) del Giappone nel 1993.

Il nome di Yukihiro Matsumoto (まつもとゆきひろ) può essere trovato nella lista di posta elettronica Ruby su www.ruby-lang.org. Nella comunità Ruby, Matsumoto è noto anche come Matz.

Ruby è il "miglior amico degli sviluppatori".

Le caratteristiche di Ruby sono simili a quelle di Smalltalk, Perl e Python. Perl, Python e Smalltalk sono linguaggi di script. Smalltalk è un linguaggio orientato agli oggetti. Ruby, come Smalltalk, è un linguaggio orientato agli oggetti perfetto. La sintassi di Ruby è molto più facile da usare rispetto a quella di Smalltalk.

Caratteristiche di Ruby

  • Ruby è open source e disponibile gratuitamente su Internet, ma richiede una licenza.
  • Ruby è un linguaggio di programmazione generico e interpretato.
  • Ruby è un linguaggio di programmazione orientato agli oggetti.
  • Ruby è un linguaggio di script server-side simile a Python e Perl.
  • Ruby può essere utilizzato per scrivere script di interfaccia gateway iperg globale (CGI).
  • Ruby può essere incorporato nel linguaggio di markup a的超文本 (HTML).
  • La sintassi di Ruby è semplice, il che rende facile per i nuovi sviluppatori imparare Ruby rapidamente.
  • Ruby ha una sintassi simile a quella di molti linguaggi di programmazione come C++ e Perl.
  • Ruby è estremamente espandibile e i programmi scritti in Ruby sono facili da mantenere.
  • Ruby può essere utilizzato per sviluppare applicazioni Internet e Intranet.
  • Ruby può essere installato su sistemi Windows e POSIX.
  • Ruby supporta molti strumenti GUI, come Tcl/Tk, GTK e OpenGL.
  • Ruby può connettersi facilmente a DB2, MySQL, Oracle e Sybase.
  • Ruby ha molte funzioni integrate, che possono essere utilizzate direttamente nei script Ruby.

The tools you need

To execute the examples discussed in this tutorial, you need a computer with at least 2GB of RAM (recommended 4GB) with an Intel Core i3 or i5 processor. 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
  • Web browser Internet Explorer 5.0 or above
  • 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 indicate how to install Ruby and configure the environment to prepare for developing Ruby applications.