Skip to content
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

Karinna Iniguez - Hotel - Octos #34

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

karinnainiguez
Copy link

@karinnainiguez karinnainiguez commented Mar 12, 2018

Hotel

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Describe a design decision you had to make when working on this project. What options were you considering? What helped you make your final decision? I originally decided to make block a class, during our in class discussion on design. However, I had to re-evaluate that decision, because I had rooms as a class, which knew if it was reserved on a given date. Because of that aspect of my code, I finally decided to keep block as an attribute of room instead of creating a class for block and had to remove those empty files (block.rb and block_spec.rb).
Describe a concept that you gained more clarity on as you worked on this assignment. Comparing two arrays became more clear, and through my search, I found out about sets in ruby and what types of comparisons you can do if you turn arrays into sets.
Describe a nominal test that you wrote for this assignment. In my reservation class spec file, I created a test to see if a new reservation could be created with a start date, an end date (later than start date) and a room.
Describe an edge case test that you wrote for this assignment. An edge cases that I tried in that same reservation class spec file, were testing to make sure that an Error would be raised if the end time entered was before the start time entered.
How do you feel you did in writing pseudocode first, then writing the tests and then the code? I think I did ok writing pseudocode, but I think a lot of that work was better because we had a chance to discuss the design and start the pseudocode together in class in groups. I'll try to apply those steps even when I work alone on design decisions.

…helper methods with SETS, thanks for the brainstorm Sam:
end
end

def blocked?(date)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Methods that end in the ? should return true or false

@kariabancroft
Copy link

Hotel

What We're Looking For

Feature Feedback
Design
Demonstrated classes having a single responsibility Yes - Nice job separating the date validation logic.
Demonstrated loose coupling Yes
Methods demonstrate a good use of encapsulation, inputs and outputs Yes
Wave 1 requirements Yes
Wave 2 requirements Yes
Wave 3 requirements Yes - I think by putting the block data directly in the room class it ended up becoming more than what it needed to be. It is a bit convoluted now how that block data relates to the reservation. Its also difficult to see how you might be able to see all of the rooms reserved for a given block or something along those lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants