- I understand that functions in JavaScript can take any number of arguments. Yes
- I can describe the similarity between blocks in Ruby and anonymous functions in JavaScript. Mostly
- Where are the methods available to all arrays (e.g.
forEach
,map
, etc.) defined? prototype - I can explain the difference between using a
for
loop and theforEach
method. Sort of......
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Teaspoon includes some support files, but you can use anything from your own support path too. | |
// require support/expect | |
// require support/sinon | |
//= require support/chai | |
// require support/chai-jq-0.0.7 | |
// require support/your-support-file | |
// | |
// PhantomJS (Teaspoons default driver) doesn't have support for Function.prototype.bind, which has caused confusion. | |
// Use this polyfill to avoid the confusion. | |
//= require support/phantomjs-shims |
####Have you ever not used an app/website because of how it looks?
- User Interface (UI) is becoming more and more important
- Why? YOu could have written the best code possible for an app, but most people won't want to use it if it doesn't look updated
####Trends
- Account registration (Oauth)
- Long scroll
- Card layouts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pre-Work: | |
Got to Mandrill and set up and account. Have your `username` and `keys` ready. | |
In Rails, run ` rails g mailer NotificationsMailer` (or something similar) will set up a new file in the `app/mailer/` folder. In this case it generates a `notifications_mailer.rb`. It also creates a new dir: `app/views/notifications` | |
1. Configure your Mail APP . In `config/application.rb` add the following configuration : | |
``` | |
config.action_mailer.delivery_method = :smtp |
####Think of three things you are grateful for
- Been sad recently? Worry and guilt activate reward center
- Why? In the short term, worrying makes your brain feel a little better — at least you’re doing something about your problems.
####Gratitude
- Wellbutrin boosts the neurotransmitter dopamine - so does gratitude.
- Prozac boosts the neurotransmitter dopamine - so does gratitude.
- Forces you to think about positive things which releases seratonin - Even if it is forced!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files? | |
It means one can reduce the number of requests that a browser makes to render a web page, which leads to faster load time. Compiling a bunch of files into one location. | |
Ex. file1.txt file2.txt ---> file3.txt | |
What does it mean to precompile files? What does this have to do with coffeescript and sass files? | |
Precompiling pulls all JS and CSS files and brings them together and makes them smaller. By default .coffee and .scss files will not be precompiled on their own and Rails uses CoffeeScript for JavaScript and SCSS for CSS. A "translator" | |
What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files? |
Group Member Names:
-
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 prefer after school and typically not too late.
-
How will group members communicate? How often will communication happen, and how will open lines of communication be maintained? Slack group, group text
NewerOlder