Download presentation
Presentation is loading. Please wait.
Published byἸοκάστη Δάβης Modified over 6 years ago
1
What to do today: Brief history of Ruby General qualities/info
Start programming syntax needed to program
2
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”
3
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
4
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
5
Let's start
6
Lets add some more...
7
More...
9
That was ugly, this is pretty...
10
Inheritance
12
Arrays/Hashes
14
Loops...
15
For...
16
Code Blocks
17
Code Blocks
18
Scoping Issues
19
Regular Expressions
20
Regular Expressions
21
Regular Expressions
22
Practice
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.