By Timothy Sparks
Yukihiro Matsumoto wanted “a scripting language that was more powerful than Perl, and more object- oriented than Python. That's why I decided to design my own language“ Created in 1995
Looks like the love child of Perl, C, and Ada. Implicitly declared data types (example = 5) # - Comments Built in data conversion x.to_- (similar to C# VariableName.toString) Supports regular expressions
For (Var) in [1,3] do …. end Range does not have to be single data type [1,”two”, [3,4,5.0]].each do |Var| While do, do while, until, loop statements
Case (MommySays) when (ImSpecial) : print “I like chocolate milk” else …. End If (boolean) ….. Elsif …. Else …. End
Allows for custom classes Allows for changing existing classes (method overridding)
Completely OO / Psuedo- procedural. Very Simple Object Creation
C-based Begin …. Rescue (Exception) #Catch () in C …. End Custom Exeptions
Support began in 1.8 (currently stable at 1.9.2) JRuby – allows for currency prior to 1.8 (no Global Interpreter Lock ) < 1.8: pseudo-concurrency
Ruby On Rails Completely free Compiler for Mac, Linux, Windows No need for an IDE
Readability: 9 Writeability: 9 Reliability: 9 Cost: FREE!!! (unlike food)
Basic Condensed Object Oriented
tAddison Wesley Longman, Inc., Programming Ruby, October , t Aptana, October 25, 2011, Huw Collingbourne, The Book of Ruby, 2009, © Huw Collingbourne, associated website: Bruce Stewart, An Interview with the Creator of Ruby, November 29, JRuby, October, 24, Peter Cooper, Ruby Inside, May 13, fibers-8-useful-reads-on-rubys-new-concurrency-feature-1769.htmlRubyMine, JetBRAINS, October 24, 2011, fibers-8-useful-reads-on-rubys-new-concurrency-feature-1769.htmlhttp:// Ruby Official, October 24, 2011, Robert W. Sebesta, Concepts of Programming Languages, © 2010 Pearson Education, Inc., Ninth Edition