###The server file contains http verbs that dictate how a page is rendered, what logic is executed and what will be sent back to the client.
###Pass a var to the server file. The server file uses ERB to translate a designated file in the views dir.
###The server file contains http verbs that dictate how a page is rendered, what logic is executed and what will be sent back to the client.
###Pass a var to the server file. The server file uses ERB to translate a designated file in the views dir.
## 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 lives on the one side of a one to many relationship. It is generally called tablename_id. The "many" object in the relationship holds on to a forieign key that uniqely identifies it's "one" association. | |
#### Write down one example of: | |
* a `one-to-one `relationship. | |
* Citizen to SSN | |
* One king to one kingdom | |
* a `one-to-many relationship`. | |
* One kingdom has many peasants |
* concatenation takes the contents of multiple assets and puts them in to a single file i.e. "output/main.js. | |
Given | |
the file "input/a.js" contains | |
var a = 1; | |
And | |
the file "input/b.js" contains | |
var b = 2; | |
#Concatenate! | |
the file "output/main.js" should contain | |
/* Made by Computer Corp. LLC */ |
When and why would you rebase? | |
to squash commits | |
What are the steps to do a basic rebase via the command line? | |
git rebase | |
Our cart in Little Shop is not stored in the database. How does its state persist across requests? | |
sessions | |
Name two objects used in Rails that can be used to track state of the user across requests. | |
sessions, flashes | |
Draw the MVC model and the request response cycle through a rails app. | |
get ‘/tasks’, TasksController.index => redirect_to :index, render app/views/tasks/index.html.erb |
#Background | |
* Lean startup Eric Ries - encourages "business-hypothesis-driven experimentation" | |
* Prioritizes "verified learning" over market research | |
* Eliminating waste - minimize features created that don't get used | |
#MVP | |
* (MVP) is the "version of a new product which allows a team to collect the maximum amount of validated learning about customers with the least effort" | |
* does not account for scalability or viability - tests are there customers that want this product | |
*zappos founder buying shoes from retail stores | |
##Leap My code: here
###Your experience implementing
###Were you successful?
ES5
and if it seems useful/superfluous.MIDI.org itself says “the Web-MIDI API is the most significant advancement of MIDI since… MIDI itself!” | |
- Why its awesome | |
Enabled by default in chrome - no software or setup needed | |
Works on all platforms and devices. Anything with a web browser can run a Web-MIDI app and use local MIDI hardware. | |
Works with your existing MIDI setup. If your MIDI gear is connected to your computer, tablet or phone (by a cable or even wirelessly) that same connection will connect your MIDI gear to your Web-MIDI enabled browser. | |
Updates are automatic. No need to install new versions, the latest version is always available at the website URL. | |
Accessible anywhere. Apps and data in “the Cloud” are available anywhere you have an internet connection. | |
Browsers make it easy to connect you and your music to other people via social media and on-line MIDI communities. |