Giter VIP home page Giter VIP logo

week4-homework's Introduction

Week 4 Homework

This is the last homework assignment of the quarter! Isn't this sad? :-)

FORK this repository before you start.

DUE: You must push your code to GitHub no later than Thursday, April 30 at 5:29PM.

Overview

This app "works" - but it's implementation violates HTTP best practices.

Your job is to clean up the code so that it follows best practices for RESTful design.

When you are done, the app should still work the same from the user's perspective, along with a couple of enhancements.

Go through every component of Rails and change the code to confirm to best practices:

  1. (3 pts) Make sure your routes follow the "Golden 7" HTTP method/URL conventions. (The lone exception is the root route.)
  2. (3 pts) Make sure your controllers follow the "Golden 7" action naming conventions.
  3. (3 pts) Make sure your views transmit requests using the proper HTTP methods.

Finally, you can earn 1 point for code readability and style. Make sure your variable names are good, and your indentation is consistent and clean, in all files - routes, controllers, and views.

Happy coding!

week4-homework's People

Contributors

danakatz avatar jeffcohen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.