Ruby Collections
Treehouse
Course Summary
In the Ruby Collections course at Treehouse, you'll level up your Ruby knowledge and start learning about collections. We use two basic data structures to create collections in Ruby: arrays and hashes. These are both examples of "collections" and you’ll work with them a lot in your career as a Ruby programmer. During the course, we'll be writing simple programs that build on what we learned in this course and in previous courses.
-
+
Course Description
About this Course In the Ruby Collections course at Treehouse, you'll level up your Ruby knowledge and start learning about collections. We use two basic data structures to create collections in Ruby: arrays and hashes. These are both examples of "collections" and you’ll work with them a lot in your career as a Ruby programmer. During the course, we'll be writing simple programs that build on what we learned in this course and in previous courses. What you'll learn
- Ruby Arrays
- Ruby Hashes
- Ruby Collections
About the Teacher
Jason helped launch Treehouse and spent 4 years teaching here before returning to Rails development full time.
-
+
Course Syllabus
Ruby Arrays
An array is a container of data, similar to a list. Arrays can be used to store many different kinds of data including strings, numbers, and almost any other kind of Ruby object. In this stage, we'll learn how to create and manipulate arrays. 8 steps- Ruby Arrays 5:03
- Creating an Array 1 objective
- Adding Items to Arrays 3:26
- Adding Items to Arrays 2 objectives
- Accessing Items in Arrays 4:42
- Accessing Items in Arrays 3 objectives
- Removing Items From Arrays 3:43
- Removing Items From Arrays 2 objectives
Ruby Hashes
A hash is data structure similar to an array. Hashes are used all throughout Ruby programs. In this stage, we'll get comfortable creating and working with hashes in Ruby. 8 stepsBuild a Grocery List Program
Now that we know how to use arrays and hashes, we're going to build a small program that makes a grocery list for us. We'll combine all of the knowledge we've learned so far including input and output, method definitions, and more. 9 steps