Skip to content

Instantly share code, notes, and snippets.

View hora's full-sized avatar
🍳

hora

🍳
  • Vancouver, Coast Salish Territories
View GitHub Profile
@hora
hora / web_dev_cheatsheet.md
Last active January 25, 2017 22:12 — forked from matt297/web_dev_cheatsheet.md
Lighthouse Labs - Intro to Web Dev - Cheat Sheet
@hora
hora / heroku_deployment.md
Last active February 22, 2017 03:59 — forked from matt297/heroku_deployment.md
Lighthouse Labs - Intro to Web Dev - W6D2 - Deploying Finstagram to Heroku

Deploying Finstagram to Heroku

These instructions will help you deploy your Finstagram app to Heroku (a web hosting service), so that the entire internet will be able to see and interact with your application! Before we get to deployment though, we need to make sure a couple of our files are setup properly.

Pre-Deployment: Edit Your Gemfile

Ensure your Gemfile file contains the following code (should match exactly).

source "https://rubygems.org"

gem 'rake'
gem 'activesupport'

Classical Inheritance in Ruby

For programmers who are new to Object Oriented Programming, the ideas behind classical inheritance can take some getting used to. This article walks you through the syntax of defining class inheritance in Ruby with explanations of each OOP feature along the way. You will have created many inheriting classes and used them in Ruby code by the end of this exercise.

Create a new Ruby code file and copy the code examples into it as you go. Run the file with the provided driver code and read the output. Try writing your own driver code to try things out new concepts as they're introduced.