- Prefers to leave for dinner around 7:30
- Prefers to work after school after a short break
- Prefers to work together at all times(pairings)
- Likes to swap driving of code.
- Strengths :Problem solving, Testing
- Weaknesses : Ruby Syntax
-
Define CRUD. create, read, update, delete
-
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. read: get, read: get, create: get, create: post, update: get, update: put, delete:, delete
-
Why do we use
set method_override: true
? to set the form to put or delete instead of the default value of post. We override the verb. -
Explain the difference between
value
andname
in this line: ``.
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
## 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? | |
We find a primary key as the main identifier of a table. Example: Teachers: TeacherId. A Foreign creates the relationship between tables. | |
Example: Teachers : course_id. The naming convention for these are the table they belong to + "_id" | |
#### Write down one example of: | |
* a `one-to-one `relationship. | |
each person has one toothbrush and one toothbrush has one person. This is modeled by combining both to a single table because they are | |
dependent of eachother |
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
#### Important links: | |
The Elm Architecture - https://github.com/evancz/elm-architecture-tutorial/ | |
StartApp.Simple - https://github.com/evancz/start-app | |
Core Libraries - http://package.elm-lang.org/packages/elm-lang/core/3.0.0/ | |
#### Install | |
Install the Elm Platform by downloading and running the Elm installer for your favorite operating system. | |
Once you've installed the Elm Platform, you should be able to run the following command: |
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
What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files? | |
Combine files. This will increaase performance and provide an efficient package that our browser can interpret | |
What does it mean to precompile files? What does this have to do with coffeescript and sass files? | |
Sass -> CSS, CS -> JS. Our browser needs CSS/JS/HTML. Sass and CS abstractions of their base language/ | |
What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files? | |
Strip whitespace and uneeded data. This will increaase performance and provide an efficient package that our browser can interpret | |
Start up the server for Catch 'em All (rails s) and navigate to http://localhost:3000/assets/application.js. Then open up the code for application.js in your text editor. Why are these not the same? |
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
### Leap | |
##Leap | |
My code: [here](https://github.com/Jbern16/exercism/blob/master/javascript/leap/leap.js) | |
* Responder #1 ([here](http://exercism.io/submissions/9b50b27c92fb45a2848639bbce4d95ae) - This user used a super a clean conditional statement and logic to solve this problem. He broke out what a leap is instead of nesting a conditional and and responding with a boolean directly. I think this approach was very good. | |
* Responder #2 ([here](http://exercism.io/submissions/5f87d2e1f50242c08904e065dea8dad5) - This user used a similar broken down condiional as I did, however with more conditions. Although morereadable it creates a longer conditional which I am not a fan of doing. | |
* Responder #3 ([here](http://exercism.io/submissions/aa2c5470f91441ac9c5af928ec58092d) - This user used one very long, one line conditonal. Although short, It is not readable and a little too clever. By breaking it down multiple lines its easier to reason about. |
MVP:
Player must survive unlimited waves of enemies.
You can move(WASD) and shoot in 360 degree radius(Mouse)
Zombies move toward you
Zombies spawn in random places
OlderNewer