CSC/ECE 517 Fall 2012/ch1b 1w54 go
SaaS Ruby 101
Introduction
The Coursera video series were created to give free college level lessons to anyone with internet access. The Saas video discussed in this wiki page is the Ruby 101 provided by California University. The video covers the fundamentals of the Ruby language and the basic concepts needed to write programs. More information about the language can be found at its Wikipedia page.
What is Ruby
The Ruby language is an interpreted language and a scripting language, meaning that there is no compile time as in other OO languages. Without the compile time, Ruby programs lose many warnings that programmers rely on for safety.
Ruby is also a dynamically typed language meaning that the type of some things may not be determinable until run time. All objects have types but variables that reference those objects do not have to have types stated explicitly.
Syntax
Differences between Ruby and other OO languages (syntactic sugar)
What ends a statement (; and new line, talk about line breaks)
Objects
Ruby is an OO language but unlike other such languages everything in Ruby is an object. Anything created in Ruby can have messages passed to it or be referenced like an object at any time; whether or not this will do anything is determined by what is referenced.
Variables
-Strings
Symbols
-Arrays -Hashes (dictionaries)
Methods
References
http://tryruby.org/ - A helpful site that provides an interface to execute your ruby code
http://en.wikibooks.org/wiki/Ruby_By_Examples - Wiki book that discusses Ruby and its' syntax
http://rubyinstaller.org/ - Link to download Ruby
http://en.wikipedia.org/wiki/Ruby_(programming_language)- Wikipedia page