A quick overview of what we'll be doing in this class.
A quick primer on Ruby
Let's get some background on Ruby real quick.
Getting your terminal and text editor set up
Make sure you have Sublime Text and the Command Line ready before moving on.
Customizing your terminal
Feel free to play around with the look and feel of your command line so that you can get something you like working with.
Setting up Ruby
Let's get Ruby set up on your computer.
Debugging & continuing setting up Ruby
In this lesson, I show you how you might troubleshoot a problem during the installation process in case you run into one. (Feel free to skip this step if your installation worked fine and you just want to jump directly to coding.)
Command Line Crash Course
The command line can be a scary place for beginners, but there are only a handful of commands you'll need to know in order to use it including pwd, cd, and ls.
Week 1: Beginner Ruby
about 1 hour
Playing with Ruby
I'm going to show you how to run your first Ruby code with the Interactive Ruby Shell (IRB).
Puts and your first script
I'm going to show you how to write and run your first Ruby script. Are you ready? You're about to get 20% more awesome.
Errors & Debugging
Ahh help! Help! It's not working! Before you freak out, let me walk you through what might go wrong when you make a typo, and how you can fix it.
Once you learn about comments, you'll start seeing them everywhere!
Numbers & Math
Let's play around with some numbers in Ruby.
Variables are just names for things. They're the building blocks of programming.
Strings & Text
Strings are another data type it's important to know about in Ruby.
Getting User Input
Now I'll show you how to get input from people interacting with your scripts.
Your first assignment in this class will test everything you've learned so far.
Assignment #1 Review
Reviewing Assignment #1
about 1 hour
Recap of Beginner Ruby
Methods, Part 1
Methods make the world go round.
Methods, Part 2: Methods Strike Back
Let's learn how to use methods to set variables.
Methods, Part 3: Return of the Methods
I'll show you how to solve the challenge from the last lesson.
I'll show you how to read files in Ruby
I'll show you how to write to files in Ruby.
With the last two lessons (reading and writing files), you now have enough to do more advanced stuff, like write a script that copies a file from one place to another.
Assignment #2: Fix the Error
In this assignment, the task is to fix a Ruby file that your coworker gave you that has a lot of errors. It's not running, can you fix the errors and get it to run?
Assignment #2: Fix the Error Review
In this video I review Assignment #2 from the last lesson and give you some tips.
about 1 hour
Logic in Ruby
True or False: Are you ready?
We're going to practice the truth table stuff together so that you get a better hang of it.
Have you ever wondered 'What If'?
Else and Elsif
Else and Elsif are the other half of If.
Arrays are basically lists of things in Ruby. Let me show you how to use them.
Loops let you do the same thing over everything in a list. Confused? They're really useful. Let me show you want I mean.
I'm going to challenge you with a common developer interview question.
Here's how I solved FizzBuzz.
More About Arrays
There was more about Arrays that I forgot to tell you.
What? More stuff? This is it. Hashes are basically arrays crossed with a dictionary.
The Halfway Point
You made it halfway! It's gonna get serious now. We're going to write some real code.
APIs with Ruby
about 1 hour
Let's pull some stock prices and make some $$$!
Stocks API Challenge
This is the solution to the challenge posed in the last video
Get the weather forecast using a Ruby script
Weather API + Geocoder
Make an improvement on the simple weather API script we built in the last lesson.
Weather API Challenge 1
See the solution to the challenge posed in the last video
Weather API Challenge 2
Another challenge! What a treat.
Learn how to use the Twilio API to send text messages!
Twilio API Challenge 1
Solve the challenge I posed at the end of the last lesson
Twilio API Challenge 2
A 2nd challenge related to the Twilio API
Assignment #3: Work with an API
Your assignment for week 3
Web Scraping with Mechanize
Scraping with Mechanize
Let's grab some web pages using the Ruby Mechanize Gem
Searching Amazon with Mechanize
Let's use Mechanize for something more fun: Getting data from Amazon.
Searching Through Amazon HTML with Mechanize
Let's parse the HTML from Amazon's webpage so we can actually get the data we're looking for.
Building Web Apps with Sinatra
Your First Website with Sinatra
Let's create your first web app in Ruby!
Creating a View in Sinatra
In this lesson we'll combine HTML and Ruby for the first time using a View.
Variables in ERB Views
Now I'll show you how to insert Ruby variables into your ERB code
Routing and Using the Stocks API in Sinatra
Routing lets you create different pages and different ways of interacting with your Web App
Creating a Form to Accept User Input
In this lesson you'll learn how to accept user input through a form.
Accepting Post Requests in Sinatra
Finally we'll create a new route to accept the POST request from the form.