Skip to content

Instantly share code, notes, and snippets.

View hhoopes's full-sized avatar

Heidi Hoopes hhoopes

  • Denver, CO
View GitHub Profile
@hhoopes
hhoopes / require-1511.markdown
Last active May 23, 2016 05:05 — forked from rrgayhart/require-1511.markdown
The Concept of Require

When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.

Read Node.js, Require and Exports and Organize Your Code with RequireJS

Fork this gist and answer the following questions:

  • In the context of Node, what is a module?
**Step One**: Watch [Sorting Algorithms in JavaScript](https://www.youtube.com/watch?v=uRyqlhjXYQI)
**Step Two**: Fork this gist.
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?"
This is a good question to think about, because I'm helping the mod 1 students with their sorting suites!
There are three considerations for a sorting algo: stability (maintaining the fidelity of a collection with the criteria given), runtime, actual implementation.
@hhoopes
hhoopes / cfu_crud_in_sinatra.markdown
Last active February 2, 2016 23:07 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. Define CRUD. The 4 functions you need to be able to implement in a web app for a user to interact with data: CREATE READ UPDATE DELETE
  2. There are seven verb + path combinations that are necessary in a basic Sinatra app in order to provide full CRUD functionality. List each of the seven combinations, and explain what each is for. GET /collection : get the full set of data being stored GET /collection/1 : get an individual object that's being stored GET /collection/add : Gives the user the ability to add new information to the collection