Skip to content

Instantly share code, notes, and snippets.

@afg419
afg419 / cfu_crud_in_sinatra.markdown
Created December 1, 2015 20:03 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. Define CRUD.
  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.
  3. Why do we use set method_override: true?
  4. Explain the difference between value and name in this line: <input type='text' name='task[title]' value="<%= @task.title %>"/>.
  5. What are params? Where do they come from?
@afg419
afg419 / setting_expectations.markdown
Last active December 8, 2015 01:01 — forked from rwarbelow/setting_expectations.markdown
Setting Expectations

Setting Group Expectations

Group Member Names: Skylark, Starlord, Shrieking Huntress

  1. When are group members available to work together? What hours can each group member work individually? Are there any personal time commitments that need to be discussed? Available to work before school, except wed fri, otherwise evenings are generally good.

  2. How will group members communicate? How often will communication happen, and how will open lines of communication be maintained? Slack(for communication), waffle(status)... Clear and explicit conversation everytime we split to individual tasks about expectations etc.

@afg419
afg419 / package-management.markdown
Last active March 24, 2016 16:49 — forked from rrgayhart/package-management.markdown
The Dangers of Using Code You Don't Control

JavaScript Functions

I can explain the difference between function declarations and function expressions.

  • function expressions are defined by var name = ... are invoked with name(...) but are not hoisted.
  • function declarations are defined by function name(...){...}, are invoked similarly, and are hoisted.

Rules for this:

    1. this is the global object (window, or global when in terminal)
    1. this is whatever object the function/method is being called from
    1. this is whatever you say this is.