Ruby - Introduction
Ruby is a high-level and general-purpose programming language created by Yukihiro "Matz" Matsumoto in Japan starting in the mid-1990s. It runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. It is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. Ruby is dynamically typed and uses garbage collection and just-in-time compilation. It supports multiple programming paradigms, including procedural, object-oriented, and functional programming. Some important features of Ruby are given below:
Simple Language - Ruby is a simple language. It is very easy to understand and learn. It provides structured approach that means a problem can be solved by breaking it into parts.
Case-Sensitive Language - Ruby is a case sensitive language and treats the uppercase and lowercase characters in a different manner.
Object-Oriented Programming Language – Ruby is an object oriented programming language. This is one of the most important feature of Ruby.
Machine Independent Language – Ruby can be interpreted on various operating systems including UNIX-based systems, Linux, Mac OS and various versions of Windows.
High-Level Language – Ruby is a high-level language and enables development of a program in user friendly way and generally independent of computer's hardware architecture.
Open-Source Language – Python is an open source language which makes it freely usable and distributable, even for commercial use.
Structured Programming Language – Ruby is a structured programming language that means any Ruby program can be achieved in parts using methods, classes and objects. This makes any Ruby program easy to understand and modify.
Server-side scripting – Ruby is a server-side scripting language similar to Python and PERL. Ruby can be used to write Common Gateway Interface (CGI) scripts.
Embeddable in HTML – Ruby can be embedded into Hypertext Markup Language (HTML).