Skip to content

Instantly share code, notes, and snippets.

An app to allow users to sort tasks by important/not important and urgent/not urgent

What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files?
To concatenate files means to join multiple separate files into one.
Image of a concatenated file:http://speedrak.com/blog/how-to-combine-css-stylesheets-wordpress/
Concatenating files allows us to minimize the number of requests sent to the server. Server requests are costly. It takes time to establish an HTTP connection
What does it mean to precompile files? What does this have to do with coffeescript and sass files?
To put a file into the most effecient, ready to use format.
Coffeescript and Sass are built on javascript. They are 'human readable' but the need to be compiled back into javascript before they can be used by the computer

Setting Group Expectations

Group Member Names:

  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?

  2. How will group members communicate? How often will communication happen, and how will open lines of communication be maintained?

  3. Which feature(s) does each group member want to work on? Which feature(s) does each group member not want to work on?

DTR with Sunny
##*Availability*
###Christopher
Pairing 5pm 4/14
Doctor appointment 4pm 4/15
Free Friday outside of class, weekend free.
####Preferred work time:
g + n opens notifications
g + i opens issues - could be useful when github and waffle.io issues are connected
c when you are in the issues page 'c' creates a new issue
g + p opens index of pull requests - definitely useful when looking at or reviewing pull requests, especially when finding one you have accidentally tried to pull into the base fork
c when you open a specific pull request 'c' brings up the list of commits pulled in
t when you open a specific pull request 't' brings up the list of files changed by merging in that pull request
## Models, Databases, Relationships in Rails
#### What is the difference between a primary key and a foreign key? Where would we find a primary key? What would it be called by default? Where would we find a foreign key? What is the naming convention for a foreign key?
Primary Key is the unigue key for table x, foreign key is putting x's primary key into another table to establish a relationship. The default name is 'id'. A foreign key can be in any table, usually in the 'many' of a one-to-many relationship. Naming convention is tablename_id.
#### Write down one example of:
* a `one-to-one `relationship.
Each person has one toothbrush
* a `one-to-many relationship`.
@seeker105
seeker105 / cfu_crud_in_sinatra.markdown
Created March 22, 2016 19:05 — 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?

Introduction to Sinatra

1. What is the purpose of the server file (routing)?

The server file acts as the executable code. It processes the incoming HTTP message and generates the correct output to return to the user.

2. How do you pass variables into the views?

You declare an instance variable. When the server file is executed it inherits the current state, including the instance variables.