Download presentation
Presentation is loading. Please wait.
Published byWesley Alexander Modified over 9 years ago
1
By Timothy Sparks
2
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
3
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
4
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
5
Case (MommySays) when (ImSpecial) : print “I like chocolate milk” else …. End If (boolean) ….. Elsif …. Else …. End
6
Allows for custom classes Allows for changing existing classes (method overridding)
7
Completely OO / Psuedo- procedural. Very Simple Object Creation
8
C-based Begin …. Rescue (Exception) #Catch () in C …. End Custom Exeptions
9
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
10
Ruby On Rails Completely free Compiler for Mac, Linux, Windows No need for an IDE
11
Readability: 9 Writeability: 9 Reliability: 9 Cost: FREE!!! (unlike food)
12
Basic Condensed Object Oriented
13
http://99-bottles-of-beer.ne tAddison Wesley Longman, Inc., Programming Ruby, October 24 2011, http://www.rubycentral.com/pickaxe/tut_classes.html t http://www.rubycentral.com/pickaxe/tut_classes.html Aptana, October 25, 2011, http://www.aptana.com/http://www.aptana.com/ Huw Collingbourne, The Book of Ruby, 2009, © Huw Collingbourne, associated website: http://www.sapphiresteel.com/http://www.sapphiresteel.com/ Bruce Stewart, An Interview with the Creator of Ruby, November 29, 2001 http://linuxdevcenter.com/pub/a/linux/2001/11/29/ruby.html http://linuxdevcenter.com/pub/a/linux/2001/11/29/ruby.html JRuby, October, 24, 2011 http://jruby.org/http://jruby.org/ Peter Cooper, Ruby Inside, May 13, 2009 http://www.rubyinside.com/ruby- fibers-8-useful-reads-on-rubys-new-concurrency-feature-1769.htmlRubyMine, JetBRAINS, October 24, 2011, http://www.jetbrains.com/ruby/http://www.rubyinside.com/ruby- fibers-8-useful-reads-on-rubys-new-concurrency-feature-1769.htmlhttp://www.jetbrains.com/ruby/ Ruby Official, October 24, 2011, http://www.ruby-lang.org/en/http://www.ruby-lang.org/en/ Robert W. Sebesta, Concepts of Programming Languages, © 2010 Pearson Education, Inc., Ninth Edition
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.