Skip to content

Instantly share code, notes, and snippets.

View hwhelchel's full-sized avatar
🎯
Focusing

Harry Whelchel hwhelchel

🎯
Focusing
View GitHub Profile

How Dev Bootcamp Teaches: ActiveRecord

I'm Jesse, one of the co-founders of Dev Bootcamp, and the acting curricular editor-in-chief. We get lots of questions about how Dev Bootcamp approaches teaching, what our curriculum is like, and how it differs from other schools and competitors. I thought I'd share some of that with you, starting with a brief overview of our theory of learning and then sharing our introduction to ActiveRecord.

This will be light on theory and heavy on ActiveRecord, so if you're not familiar with SQL or Ruby it might be hard to follow. Mea culpa.

Dev Bootcamp's Theory of Learning

At Dev Bootcamp, we believe that "modeling" is central to learning. The most effective students have a clear model of how the world works and are able to quickly integrate new information int

@hwhelchel
hwhelchel / get_service.js
Created September 25, 2015 19:52
Angular Service From Console
angular.element(document.body).injector().get('serviceName')
@hwhelchel
hwhelchel / email_tracker.rb
Created June 21, 2015 15:11
Outlook Email Keyword Analysis in Ruby
require 'win32ole'
require 'date'
puts "Please enter keywords you want to match as comma separated values"
keywords = $stdin.gets.chomp.split(",").map(&:strip)
puts "Please enter the Data File. This is case sensitive."
data_file = $stdin.gets.chomp
puts "Please enter the Folders to searched separated by commas. These are also case sensitive."
@hwhelchel
hwhelchel / schema_change.sh
Last active July 9, 2016 01:29
Undesired Rails Schema Changed (Column moved etc.)
pg_dump --create --column-inserts app_development > dump.sql # or whatever your database is called
# edit dump.sql and change the column order
# stop webserver
rails db:drop
rails db:create
psql -f dump.sql app_development
rails db:migrate
rails db:test:prepare
@hwhelchel
hwhelchel / jquery_example.html
Last active January 2, 2016 23:19 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="week10jquery.js"></script>
</head>
<body>
<h1> Hello. Welcome to the jQuery DOM Manipulation Challenge! </h1>
<div class="mascot">
@hwhelchel
hwhelchel / cli_obstacle_course
Created December 16, 2013 04:25
Week 6 Command Line Obstacle Course.
501 cd Documents/School/Dev\ Bootcamp/Phase 0
502 cd Documents/School/Dev\ Bootcamp/Phase\ 0/
503 mkdir cli-repo
504 ls
505 cd cli-repo
506 git clone https://github.com/harryw377/CLI-Obstacle-Course
507 ls
508 cd CLI-Obstacle-Course/
509 ls
510 ls -a
@hwhelchel
hwhelchel / 0.2.1-boggle_class_from_methods.rb
Last active December 29, 2015 12:29 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
# Overview
# Create a class BoggleBoard that includes the functionality of your methods from the previous challenge.
# To do this, take a look at the methods you've created. How can they be integrated into your BoggleBoard class? What needs to change?
# 1) Instantiate a new board object
# Transform your driver code so that it creates a new board object. You'll need to pass the original 2D array as an argument
# (let's call that dice_grid because boggle_board is going to be an object now.)
#
# 2) Implement your methods