Skip to content

Instantly share code, notes, and snippets.

@rwarbelow
Last active June 3, 2017 16:29
Show Gist options
  • Save rwarbelow/3f63147dfd98c76de00a to your computer and use it in GitHub Desktop.
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?

@ToniRib
Copy link

ToniRib commented Dec 11, 2015

@jwperry
Copy link

jwperry commented Dec 11, 2015

@afg419
Copy link

afg419 commented Dec 11, 2015

@bethsecor
Copy link

@martensonbj
Copy link

@bethsebian
Copy link

@Jlawlzz
Copy link

Jlawlzz commented Dec 11, 2015

@SteveOscar
Copy link

@jecrockett
Copy link

@Tman22
Copy link

Tman22 commented Dec 11, 2015

@danjwinter
Copy link

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