Skip to content

Conversation

@cassyarchibald
Copy link

@cassyarchibald cassyarchibald commented Aug 7, 2018

Random Menu Generator

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
For the places where arrays were used, could using a hash work? Could it work easily? Why or why not? I think a hash could work for each item with key/value pairs for food, adjective, and cooking style. It might be difficult to randomly choose a combination of food/adjective/cooking style if it's already in a hash.
Did you find repetitions of the same or similar code? Why did you have to do it that way? Yes, I wanted to verify user input and have them re-enter if invalid. I think this could be a method or maybe better use of Ruby's redo/retry methods to make my code dry but my attempts so far have no been successful.
Did you use any loops? If so, how did it help solve a problem? Yes, I did a times loop to get the user to enter data once then I ask if they'd like to enter another item. If so, the code runs again. I also have quite a few until loops verifying user entries are valid.

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.

1 participant