What to do today: Brief history of Ruby General qualities/info Start programming syntax needed to program
RUBY! Ruby was created in 1993 by Yukihiro Matsumoto in Japan He created it out of the drive to create “a language more powerful than Perl and more object-oriented than Python”
Ruby is a scripting language Ruby is a scripting language(like Perl), so that means(usually) that it is interpreted Ruby uses an interpreter instead of a compiler Advantages: can program on the fly no compile time, so many things are dynamic(typing, scoping, etc) Disadvantages: interpreted languages tend to be slower
Ruby is Object-Oriented Ruby is a purely object-oriented language “Everything you manipulate is an object, and the results of those manipulations are themselves objects” EVERYTHING is an object Start out with classes, then instances of classes, then instance variables, then methods, then method variables, etc... Message passing is used to call methods
Let's start
Lets add some more...
More...
That was ugly, this is pretty...
Inheritance
Arrays/Hashes
Loops...
For...
Code Blocks
Code Blocks
Scoping Issues
Regular Expressions
Regular Expressions
Regular Expressions
Practice