Skip to content

Instantly share code, notes, and snippets.

View brennanholtzclaw's full-sized avatar

Brennan Holtzclaw brennanholtzclaw

  • Veterans United Home Loans
  • Columbia, MO
View GitHub Profile
@brennanholtzclaw
brennanholtzclaw / cfu_crud_in_sinatra.markdown
Last active February 3, 2016 01:55 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. Define CRUD. 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.
    ** - Read/GET **
    ** - Read/GET **
    ** - Create/GET **
    ** - Create/POST **
    ** - Update/GET **
    ** - Update/PUT **
    ** - Delete/DELETE **
  3. Why do we use set method_override: true? ** So that the browser will know to look for a hidden verb (not post or get) and overwrite is with the "_method" verb **
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?"
I think the main things to consider are the space (memory) that you have, and what is a reasonable amount of time for sorting a set.
When you have a very small set, say less than 100 items, what's the point in caring about how items are getting sorted?
It's when you move into larger and larger sets that you have to start caring about the "Big Oh" of your algorithm.
Honestly, I'm not exactly sure what I'm answering here... Bubble sort is a fine enough sorting a very small dataset, Insertion sort is far better, but still iterates through many many times. And Merge sort is used for a reason. It is super fast, not as many calculations, and handles large sets well. Merge divides up the work quickly and finds a faster way to sort in small pieces before coming back into the whole.
Am I answering this question?
@brennanholtzclaw
brennanholtzclaw / require-1511.markdown
Last active May 24, 2016 21:30 — 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?