#Materialize
####Sick of using Bootstrap?
- What is Materialize/Material Design?
- Things to know (similarities and differences compared to Bootstrap)
- To CDN or not to CDN
- Noteable CSS Features
- A few cool Components/JS Features
- Additional Resources
#Materialize
####Sick of using Bootstrap?
1. Describe the request-response cycle (start with the client making a request). | |
* The client sends a request to the server with a verb (GET) and a path (/tasks) that it wants to ineract with. | |
* The server/router accepts that request and sends it to the controller. | |
* The controller routes the request to the proper location with the proper action (get, post, etc.) | |
* If the request requires pulling informaiton out of the database then the controller passes the request to the models, which then fetches from the database and hands it back to the controller. | |
* The controller then passes the available information over to the views, and the views build a page with the requested info. | |
* The views send the page back to the controller, where it renders HTML that gets sent back to the server. | |
* The server then sends a response to the client with information about whether the request was successful or not -- and if so, it passes the html in though the response body. |
It's the doorman to your app a.k.a. --> it handles all incoming requests and routes them to the correct place, controller, etc.
resources :items
?get "/items" => "items#index"
get "/items/:id" => "items#show"
ActiveRecord | |
1.) What is the difference in using find vs find_by? Find takes 'id' as an argument and returns that record. Find_by can take any argument from the table and return the corresponding record. | |
2.) Why use where over find_by? Where will return multiple active record associations, while find_by will only return one. | |
3.) What does pluck do? Pluck returns an array of elements from a particular column. | |
4.) Describe joins. Joins pulls in information from multiple tables. | |
5.) Describe includes. Retrives all records that match a given query? | |
RSpec: |
Group Member Names: Edgar, Matt R., Matt S.
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? We'll shoot to work after school most days, trying to accomodate little schedule differences as they come. Flexible on weekends.
How will group members communicate? How often will communication happen, and how will open lines of communication be maintained? Started a slack chaneel #Mattgar + texting. Anytime we separate to work on home, we'll plan on checking it at the end of each day to realign/help each other with problems they're having. We'll likely be pairing together most of the time, with the exception of smaller/repetitive tasks. Shoot to set mini-milestones/goals and chip away at those instead of falling behind or getting overwhelmed with the scope of the entire project.
#Asset Pipeline | |
###What does it do? | |
* Concatenation | |
* Minification | |
* Precompiling | |
##Leap My code: here
if(year === 2015) { return false; }
Seems like it got the tests to pass, but won't work for any year other than 2015.Inside of a method — indeed, inside of any function — there is a special keyword available to us: this
. It refers to the object that is the context in which the function was called.
You can force the meaning of this to be what you want it to be, using the .call()
or .apply()
method on the function itself.
With a var person
and a function called sayIt
, we can force the function to act upon the person variable. sayIt.call( person, 'Hello', '!!1!!1' );
As it turns out, most values in JavaScript are truthy — in fact, there are only five values in JavaScript that are falsy:
NaN ("not a number")