Skip to content

Latest commit

 

History

History
91 lines (57 loc) · 1.51 KB

ruby_for_programmers.md

File metadata and controls

91 lines (57 loc) · 1.51 KB

!SLIDE

Ruby For Programmers

Taught by Alex Chaffee

[email protected]

GitHub/Twitter/LinkedIn/Google: alexch

In Collaboration with Marakana

http://marakana.com/training/ruby/ruby.html

Schedule

Day One: Ruby Basics

Day Two: The Ruby Object Model

Textbook: The Well-Grounded Rubyist

Exercises: Learn Ruby Test First

http://testfirst.org/learn_ruby

Day One: Ruby Basics

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

Day Two: The Ruby Object Model

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

Advanced Topics (if time)

  • Exceptions
  • Advanced Blocks
  • Classes as Objects
  • Metaprogramming
  • IO

Test-driven Development with RSpec (probably not enough time)

  • Introduction to TDD
  • Red-Green-Refactor
  • Describing a feature
  • Verifying expectations
  • Mocks & Stubs

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, then open a terminal window and type this:

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

cd learn_ruby

open index.html in browser

Very Important!

READ THE ERROR

This is actually very difficult to do, and very easy to miss.

Make your console window REALLY TALL

When you get an error, SCROLL UP and read down STARTING from where YOU HIT RETURN