Skip to content

Conversation

@tehut
Copy link

@tehut tehut commented Feb 9, 2017

Random Menu

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
Would a hash work just as well as an Array in this project? Why? No because we have three distinct collections of words (description,style, dish). If we just had two sets of descriptions (e.g hot pork) that might work well as a hash.
Did you find yourself repeating the same code? Why did you have to do it that way? I think I could have used fewer repeating lines of code. I think the biggest reason I had to repeat my code so much was I was taking in user input for each array.
What type of loop did you use? Why did you choose that type? I used a few loops, each, each with index and a times loop. The each and each with index were great to got through the array. I used a times loop. I found it was simple and I was able to use the information from the user about how many items they wanted to see to create a loop that was just the length they wanted.

@tehut tehut closed this Feb 9, 2017
@droberts-sea droberts-sea reopened this Feb 10, 2017
@droberts-sea droberts-sea changed the title Create random_menu.rb Queues - Tehut Getahun - Random Menu Feb 10, 2017
Copy link

@droberts-sea droberts-sea left a comment

Choose a reason for hiding this comment

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

Random Menu

What We're Looking For

Feature Feedback                                                                              
Baseline
Random Menu of 10 items displayed in the terminal. Yes
Generator pulls one random item from each array to create menu items. Yes
Readable code with consistent indentation. Yes
Extras
Menu components are not repeated Yes
User can specify how many menu items to see Yes
User can specify their own food items Yes

Nice word art. Excellent work overall!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants