Ruby - 101

Ruby

Ruby

Ruby - Ruby - 101


Ruby Basics

Intro to Ruby

The goal of Ruby 101 is familiarize you with not only the syntax of Ruby but its philosophy so you are prepared to properly understand how Ruby makes frameworks like Rails and Sinatra possible. The goal is not just to learn Ruby but to code like a Ruby developer.

Helpful hint

Installing Ruby and Getting Started

Complete the following video

Try Ruby Let’s give Ruby a shot.

Complete the full list of exercises at http://tryruby.org/, you will learn what you can actually do with Ruby and get familiar with the language.


Variable Datatypes

Complete the following video.


Ruby Koans (Pt. 1)

Now, that you have installed Ruby on your machine following Installing Ruby and Getting Started, let’s learn more about Ruby using the Ruby Koans.

Install Ruby Koans

rubykoans.com

Run the following tests:

  • about_asserts

  • about_nil

  • about_strings

  • about_symbols

  • about_objects

  • about_hashes

  • about_arrays

  • about_array_assignment

  • about_constants

Tip:

For running a single file, do the following:

cd koans

ruby .rb


Classes

Complete the following video. on Working with Classes on Ruby.

Optional


Conditionals and Loops

Complete the following video.

Optional


Iterator and Blocks

Complete the following video.

Optional


Operators and Methods

Complete the following video.

Optional


Directories and Files

Complete the following video.

Optional


Ruby Koans (Pt. 2)

Run/complete the following Koans:

  • about_methods

  • about_control_statements

  • about_true_and_false

  • about_triangle_project

  • about_exceptions

  • about_triangle_project_2

  • about_iteration

  • about_blocks

  • about_sandwich_code

  • about_scoring_project

  • about_classes

  • about_open_classes

  • about_dice_project

  • about_inheritance

  • about_modules

  • about_scope

  • about_class_methods

  • about_message_passing

  • about_proxy_object_project

  • about_to_str

  • about_extra_credit


Regular Expressions


Ruby Koans (Pt. 3)

Complete the following Koans:

about_regular_expressions Final

Run “ruby path_to_enlightenment.rb” and complete the tests that are pending.


Ruby Practice

Complete the Ruby chapter in the 7 Languages in 7 Weeks eBook. This means all the reading and all the exercises. Upload them to your GITHub account.


Finishing Up

Learn Ruby Style

Review the github ruby style guide - apply these from now on

Final Reading

Read Blocks, Procs and Lambdas:

Ruby InterviewStreet Exam

Please complete the interviewstreet exam for Ruby. Ask your trainer for an invitation if you don’t already have one.