Skip to content

Instantly share code, notes, and snippets.

View vanderhoop's full-sized avatar
💭
🤷🏻‍♂️

Travis Vander Hoop vanderhoop

💭
🤷🏻‍♂️
View GitHub Profile

Eliza, a ChatBot

Code Exercise:

Eliza is a robot who responds to your questions. When the program starts, Eliza will say:

"Hi there, I'm Eliza! Let's have a chat."

When the user inputs the string:

Submitting Your w01/d01 homework.

Part 1: Move Your Work From Day 1 into the class Repo

Move your day 1 homework from into your w01/d01/student directory. You were instructed to put them in a directory called exercises within ~/dev/wdi. Move this directory into ~/dev/wdi/godot/w01/d01/student.

Part 2: Adding and Committing the Work

Once you've moved your "exercises" directory into w01/d01/student, add and commit your work.

While The Cradle Rocks

In today's "student" directory, write a short Ruby program that tracks all the things Phil does while his son, Jim-Kevin, sleeps.

Directions

  1. Create a Ruby file, while_the_cradle_rocks.rb within today's "student" directory.
  2. Within while_the_cradle_rocks.rb, create a variable, jim_kevin_is_sleeping and assign it the Boolean value of true
  3. Create a variable, phils_accomplishments and assign it an empty string ""
  4. Create a while loop that will run as long as Jim-Kevin is sleeping.

Ruby String Research and Experimentation

Manipulating strings is a common occurence for server side programming. All the text you see on Facebook and linked in has to be manipulated to appear a certain way. This exercise will give you a resource for learning more about strings.

Exercise Objectives

  • familiarize yourself with the format of the official Ruby Documentation
  • get comfortable interpolating dynamic values into strings

Directions

Intro to GitHub

As we do dive into writing programs, we're going to combine our use of Git with a popular online service called GitHub. Take the next 15 minutes to research GitHub, answering the questions below.

  • Is Git the same thing as GitHub?

    • Answer:
  • What is GitHub?

    • Answer:

Intro to Version Control with Git

Code is fragile. Accidentally delete a character here, accidentally add a colon there--and everything breaks. Fortunately, we have a tool to help us recover the original, working code. That tool is called Git. Spend 15 minutes researching and anwering the questions below.

  • What is Git?

    • Answer:
  • What problem does it solve?

    • Answer:

Pushing Local Changes to Your Fork on GitHub

You now have a local copy of your fork of the class repo! Now you'll learn how to update that fork from your machine.

Exercise Objectives

  • gain additional reps making changes to a local git repo
  • push local changes to a remote repository

Directions

Lohan on the Straight and Narrow

Becoming comfortable with Git takes time and constant repetition. Thus, it's important that you get as many reps with the basics as possible. Read on.

Exercise Objectives

  • gain muscle memory for adding and committing changes to a Git repository

Directions

Intro to Ruby Lab

Hello there! This is your first extended lab, also known as homework. It is homework in that you have to turn it in to us, and you'll usually have to work on it after class is over. It is more appropriately called a lab because we'll work on it in class and in groups, and not just at home.

Instructions

Setup

If you haven't already, do the following:

Classroom Culture Exercise

We're going to be learning together all day everyday for the next three months. Thus, it's important to establish a classroom culture that's safe, fun, and conducive to learning.

Directions

  1. Partner up.
  2. Discuss the ideal classroom with your partner. What does it look like, and what can we do as a class do to create it?
  3. Make a list of your conclusions down on your whiteboard table. (Write small.)
  4. Next discuss what the ideal classroom doesn't look like. What can we do to avoid creating a negative culture?