Length | Points | Week |
---|---|---|
20 minutes | 10 | Week 2 |
When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.
##Hello World My code: here
Responder #1 (here) - This responder used the absence of an input as the initial check for the if/else, which is the opposite of what I did, but the logic overall was almost exactly the same.
Responder #2 (here) - This person used a ternary statement, which is something that Mike strongly discouraged in Mod 1. Got everything in one line at the expense of readability.
Responder #3 (here) - This user decided to use the '===' to check if the input was empty, which I think is a little bit of an overkill for a check that simple. Otherwise, same logic.
Responder #4 (here) - This responder took an identical approach.
This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.
OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.
rails new <project_name> -d postgresql --skip-test-unit --skip-turbolinks --skip-spring
-d postgresql
sets up the project to use PostgreSQL--skip-test-unit
skips the creation of the test directory--skip-turbolinks
& --skip-spring
creates a project that does not use turbolinks or springgroup :development, :test
:
gem 'rspec-rails'
bundle
rails g rspec:install
gem 'capybara
This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.
For these questions, write a short snippet of code that meets
the requirement. In cases where the question mentions a "given"
data value, use the variable given
to refer to it (instead of re-writing
the information).