Skip to content

Instantly share code, notes, and snippets.

@rwarbelow
Last active June 3, 2017 16:29
Show Gist options
  • Select an option

  • Save rwarbelow/3f63147dfd98c76de00a to your computer and use it in GitHub Desktop.

Select an option

Save rwarbelow/3f63147dfd98c76de00a to your computer and use it in GitHub Desktop.
Week 2 Diagnostic
  1. Describe the request-response cycle. Start with the client making a request.

  2. Explain when each of these HTTP verbs would be used: GET, POST, PUT, DELETE.

  3. What are all of the necessary routes for full CRUD functionality in Sinatra app? Why do we need seven routes when there are only four CRUD actions?

  4. Describe the function of models in the MVC structure.

  5. Describe the function of views in the MVC structure.

  6. Describe the function of controllers in the MVC structure.

  7. What is the difference between model tests, feature tests, and controller tests? Give an example of functionality tested using a model test, functionality tested in a feature test, and functionality tested in a controller test.

  8. What does ActiveRecord do? Why do we use ORMs like ActiveRecord?

@jwperry
Copy link
Copy Markdown

jwperry commented Dec 11, 2015

@GregoryArmstrong
Copy link
Copy Markdown

@afg419
Copy link
Copy Markdown

afg419 commented Dec 11, 2015

@bethsecor
Copy link
Copy Markdown

@hectorhuertas
Copy link
Copy Markdown

@brantwellman
Copy link
Copy Markdown

@martensonbj
Copy link
Copy Markdown

@bethsebian
Copy link
Copy Markdown

@PenneyGadget
Copy link
Copy Markdown

@Jlawlzz
Copy link
Copy Markdown

Jlawlzz commented Dec 11, 2015

@stevepentler
Copy link
Copy Markdown

@SteveOscar
Copy link
Copy Markdown

@jecrockett
Copy link
Copy Markdown

@Tman22
Copy link
Copy Markdown

Tman22 commented Dec 11, 2015

@danjwinter
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment