Skip to content

menu_generator_project.rb #35

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

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

menu_generator_project.rb #35

wants to merge 3 commits into from

Conversation

RAgerone
Copy link

Random Menu

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
How did you store menu components? Why? I stored the menu components in an array because the directions specifically stated that I needed three arrays of ten components.
Could you have stored components using a different data structure? For example, if you used an Array could you have used a Hash? Yes, I could have used a hash. I would have done that by creating a hash named menu_items, then I would have three keys: adjectives, cooking_method, and food. I would have ten values for each pair and use these to populate the menu in a similar way.
Did you find yourself repeating the same code? Why did you have to do it that way? I noticed that my menu items were not capitalized at the last minute, so I added the .capitalize method to the menudujour variable. I could have avoided repeating that by capitalizing the words in the array in the first place. Upon immediate search, I found that using map over the array and capitalize might result in capital letters.
What type of loop did you use? Why did you choose that type? I used a while loop because I wanted the user to be able to decide when they were done adding to the menu.

@PilgrimMemoirs
Copy link

Random Menu

What We're Looking For

Feature Feedback
Random Menu of 10 items displayed in the terminal. Well Done!
Generator pulls one random item from each array to create menu items. Well Done!
Baseline
Readable code with consistent indentation. Well Done!
Extras
Nice use of the .zip method, great variable naming and solid answers with the comprehension questions.
Submission meets project expectations and learning goals. Nice work!

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