Software Development (CSC 321 2016F) : Outlines

Outline 02: Getting Started with Ruby


Held: ,

Back to Outline 01 - An Introduction to the Course. On to Outline 03 - Deploying Rails Applications.

Summary

We discuss what we have seen so far about the Ruby language.

Related Pages

Overview

Administrivia

Notes

Homework

Good Things To Do

A Quick Overview of Ruby

Ruby

What's something familiar?

What's something new and exciting you've discovered about Ruby?

How does Ruby handle a programmer's need for multiple inheritance?

What is something particularly confusing or puzzling in the reading?

Some Ruby Problems

Write sums_to_n?(vals,val) that returns true if any pair of values from vals sums to val.

Write multiple_of_4?(bitstring) that takes a string of 0's and 1's (representing an unsigned integer) as input and returns true if the string represents an integer divisible by four.

Write starts_with_consonant?(str) that determines if a string starts with a consonant.