Skip to content

Latest commit

 

History

History
85 lines (51 loc) · 1.38 KB

night_class.md

File metadata and controls

85 lines (51 loc) · 1.38 KB

Ruby For Programmers

Taught by Alex Chaffee

alex@stinky.com

GitHub/Twitter/LinkedIn/Google: alexch

In Collaboration with Blazing Cloud

Schedule

Night 1-2: Ruby Basics

Night 3: Built-in Types

Night 4: Blocks

Night 5: Iterators

Night 6: Objects

Textbook: The Well-Grounded Rubyist

Exercises: Learn Ruby Test First

http://testfirst.org/learn_ruby

Important Note

We Will Not Cover Everything

Ruby Basics

  • Ruby Overview
  • Command-line Tools
  • Core Ruby
    • Syntax
    • Functions
    • Control Flow
    • Built-in Types
  • Collections
  • Blocks and Iterators

The Ruby Object Model

  • Objects
  • Classes
  • Inheritance
  • Dispatching
  • Modules
  • Scope

Test-First Teaching

  • We use tests to check for code correctness
  • We use tests to define the task to implement
  • We know we're done when the tests pass

Conceived by Sarah Allen and Alex Chaffee

Let's get started

Install Ruby, e.g.

http://installfest.railsbridge.org

then open a terminal window and type this:

git clone https://github.com/alexch/learn_ruby.git

cd learn_ruby

then open index.html in a browser

Very Important Tips!

Arrange Your Windows

  • Make your console window REALLY TALL

READ THE ERROR

  • This is actually very difficult to do consistently and accurately
  • When you get an error, SCROLL UP and read down STARTING from where YOU HIT RETURN