-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ashton & Addie's VideoStoreAPI #17
base: master
Are you sure you want to change the base?
Conversation
Video StoreWhat We're Looking For
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nicely done.
end | ||
|
||
REQUIRED_FIELDS.each do |field| | ||
it "#{field} is required" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very neat use of a loop to generate it
blocks!
Hey there! I don't remember APIs or Ruby well enough to give a good code review on this, so I'm going to give a non-code review focused on git practices instead. One thing that jumps out to me in this project is the commit history. In my internship, I've been exposed to great git practices that I'd like to see you start practicing now. Here's the general overview:
Really great commit messages are an art. And they're WAY longer than I thought when I was in school! Here's the guide my coworkers made me read What this process does is take all of your personal tiny commits (i.e. "Deleted a space") and squashes the down into one really solid commit, so that the only commits that show up on master are logical units of work. This is how we handle every single commit on my team at Amazon, and I think it's a very common practice. I'd recommend that you start practicing this now so that it feels good when you start your internship! |
0f494ff
to
733923e
Compare
Video Store API
Congratulations! You're submitting your assignment!
If you didn't get to the functionality the question is asking about, reply with what you would have done if you had completed it.
Comprehension Questions
GET /customers
,GET /movies
,GET/movies/:title
,POST /rentals/:title/check-out
,POST /rentals/:title/check-in
,GET /rentals/overdue
available_inventory
method that subtracts the number of movies currently checked out from that movie's inventory and returns that number. It was business logic, so we stuck it in a model method.