Ruby Class (2 day)

This class provides a grounding in the Ruby language, which will enable you to use Ruby for scripting or for Web development using one of the Ruby frameworks, such as Rails or Sinatra.

Monday Tuesday
9-10:30 Class Overview
Ruby Language Introduction
Enumerables (map, inject)
10:45-
noon
Test-Driven Development

  • Red-Green-Refactor
  • Describing a feature
  • Verifying expectations
RegEx
Web Requests & Files
noon-1pm lunch
1pm-2:30pm Conditionals
Strings and Symbols
Blocks
Mocks and Stubs
2:45-4pm Collections: Hash & Array
Iterators
Domain-Specific Languages
Method Missing
4-5pm Q&A

 

Materials

Exercises for class: http://github.com/blazingcloud/ruby_lessons

Quick Reference Guides, also found in ruby_lessons/notes

Slides

Recommended Readings

Selections from the Well-Grounded Rubyist

  • Objects & Classes: 1.1, 2.1-2.4, 3.1-3.4
  • Modules: 4
  • Strings & Symbols: 8.1-8.2
  • Conditional & Iterators: 6.1-6.3
  • Collections: 9.1-9.3
  • Enumerable: 10
  • Regular Expressions: 11.1-11.8
  • I/O: 12
  • Blocks: 14.1-14.2
  • self & scope: 5
  • built-in essentials: 7
  • more about Object: 13