Skip to content

Instantly share code, notes, and snippets.

Introduction to Ruby

Why Learn Ruby?

  • It has learned/stolen a ton from the languages that came before it.
  • It's elegant and easy to learn
  • It doesn't focus on making code as short as possible, it cares about readability
  • It has a huge community behind it - documentation, tutorials, etc.
  • RAILS! Ruby is a well designed object oriented language. It is easy to read and stresses the DRY (Don't Repeat Yourself) principle. Since many of the method names and the ruby syntax itself is so much like english, it is an ideal language to start with.

Objectives

# Introduction to Ruby
## Why Learn Ruby?
* It has learned/stolen a ton from the languages that came before it.
* It's elegant and easy to learn
* It doesn't focus on making code as short as possible, it cares about readability
* It has a huge community behind it - documentation, tutorials, etc.
* RAILS!
Ruby is a well designed object oriented language. It is easy to read and stresses the DRY (Don't Repeat Yourself) principle. Since many of the method names and the ruby syntax itself is so much like english, it is an ideal language to start with.
## Objectives

#Javascript Basics

###Schedule

  • Javascript Basics
  • Variables
  • Score Keeper Code-Along
  • Conditionals
  • Compare That Code-Along
  • Temperature Converter Lab
#Javascript Basics
###Schedule
- Javascript Basics
- Variables
- Score Keeper Code-Along
- Conditionals
- Compare That Code-Along
- Temperature Converter Lab
@Colt
Colt / gist:9263742
Created February 28, 2014 01:57
Rails Basics Quiz

Rails Basics Quiz


  • Create a new Rails app called puppies
  • Make a puppy controller
  • Add an index method to the puppies controller
  • Add an index view
  • What do you add to your routes file to make your homepage route to the index view you just created?
## Rails Basics Quiz
____
* Create a new Rails app called puppies
* Make a puppy controller
* Add an index method to the puppies controller
* Add an index view
* What do you add to your routes file to make your homepage route to the index view you just created?

Exercise - Instructor

Shirt Search Code Along

###Part 1: Review Time 20 min

@Colt
Colt / ZooLab
Created November 22, 2013 07:31
What I have so far for the Zoo Lab. Uses a model, view, and collection to append new animals to the page.
jQuery ->
#Let's make a model guys!!
class Animal extends Backbone.Model
#Let's make a collection of those models
class Animals extends Backbone.Collection
model: Animal
# Building Ruby Familiarity
# In this exercise you will take a first look at some common commands in Ruby
# The idea here is to build familiary with Ruby syntax
# This will likely be the first time you've seen some of these commands
# Just type them in and see the displayed output
# Steps:
# 1. Open up a new terminal window
# 2. Launch irb
@Colt
Colt / gist:7567442
Last active December 28, 2015 21:49
Colt's Lesson Plan

Lab/Homework 11/19/13

Design and deliver a lesson on JS callbacks

Today's assignment is to prepare a lesson on callbacks in Javascript. You should assume your students have a basic understanding of JS syntax, variables and functions but have never encountered an asynchronous function and have never heard the word 'callback'.

We suggest you cover the following topics in order: