Ruby.docx - Ruby(programming language This article is about the programming language For other uses see Ruby(disambiguation Not to be confused with Ruby

Ruby.docx - Ruby(programming language This article is about...

This preview shows page 1 - 5 out of 38 pages.

Ruby (programming language) This article is about the programming language. For other uses, see Ruby (disambiguation) . Not to be confused with Ruby on Rails . Ruby Paradigm Multi-paradigm : Object-oriented , imperative , functional , reflective Designed by Yukihiro Matsumoto Developer Yukihiro Matsumoto, et al. First appeared 1995; 23 years ago Stable release 2.5.1 (March 28, 2018; 22 days ago [1] ) [±] Typing discipline Duck , dynamic , strong Scope Lexical, sometimes dynamic Implementation language C
OS Cross-platform License Ruby , GPLv2 or 2-clause BSD license [2][3][4] Filename extensions .rb Website Major implementations Ruby MRI , YARV , Rubinius , MagLev , JRuby , MacRuby , RubyMotion , Mruby Influenced by Ada , [5] C++ , [5] CLU , [6] Dylan , [6] Eiffel , [5] Lisp , [6] Lua , Perl , [6] Python , [6] Smalltalk [6] Influenced Clojure , CoffeeScript , Crystal , D , Elixir , Falcon , Groovy , Ioke , [7] Julia , [8] Mirah , Nu , [9] Reia , Ring , [10] Rust , Swift [11] Ruby Programming at Wikibooks Ruby is a dynamic , reflective , object-oriented , general-purpose programming language . It was designed and developed in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan . According to the creator, Ruby was influenced by Perl , Smalltalk , Eiffel , Ada , and Lisp . [12] It supports multiple programming paradigms , including functional , object-oriented , and imperative . It also has a dynamic type system and automatic memory management . History Early concept Matsumoto has said that Ruby was conceived in
1993. In a 1999 post to the ruby-talk mailing list, he describes some of his early ideas about the language: [13] I was talking with my colleague about the possibility of an object-oriented scripting language. I knew Perl (Perl4, not Perl5), but I didn't like it really, because it had the smell of a toy language (it still has). The object-oriented language seemed very promising. I knew Python then. But I didn't like it, because I didn't think it was a true object-oriented language — OO features appeared to be add-on to the language. As a language maniac and OO fan for 15 years, I really wanted a genuine object-oriented, easy-to- use scripting language. I looked for but couldn't find one. So I decided to make it. Matsumoto describes the design of Ruby as being like a simple Lisp language at its core, with an object system like that of Smalltalk, blocks inspired by higher-order functions , and practical utility like that of Perl. [14] The name "Ruby" The name "Ruby" originated during an online chat session between Matsumoto and Keiju Ishitsuka on February 24, 1993, before any code had been written for the language. [15] Initially two names were proposed: " Coral " and " Ruby ". Matsumoto chose the latter in a later e-mail to Ishitsuka. [16] Matsumoto later noted a factor in choosing the name "Ruby" – it was the birthstone of one of his
colleagues. [17][18] First publication The first public release of Ruby 0.95 was announced on Japanese domestic newsgroups on December 21, 1995.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture