CSC/ECE 517 Fall 2012/ch1b 1w54 go: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:


==Introduction==
==Introduction==
Talk about video
The Coursera video series were created to give free college level lessons to anyone with internet access.  The [http://http://www.youtube.com/watch?v=brEuw0kMbHA 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 [http://en.wikipedia.org/wiki/Ruby_(programming_language) Wikipedia page].




==What is Ruby==
==What is Ruby==
Who made it
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.


Interpreted
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.


No compile time


==Syntax==


==Syntax==
Differences between Ruby and other OO languages (syntactic sugar)
Differences between Ruby and other OO languages (syntactic sugar)


Line 20: Line 19:


==Objects==
==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.




==Typing==
==Variables==
Dynamic


-Strings


==Variables==
Symbols


-Strings
-Symbols
-Arrays
-Arrays
-Hashes (dictionaries)
-Hashes (dictionaries)
Line 44: Line 42:


http://rubyinstaller.org/ - Link to download Ruby
http://rubyinstaller.org/ - Link to download Ruby
http://en.wikipedia.org/wiki/Ruby_(programming_language)- Wikipedia page

Revision as of 13:11, 1 October 2012

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