Skip to content

Create ride-share.rb#25

Open
kayxn23 wants to merge 2 commits into
Ada-C10:masterfrom
kayxn23:master
Open

Create ride-share.rb#25
kayxn23 wants to merge 2 commits into
Ada-C10:masterfrom
kayxn23:master

Conversation

@kayxn23

@kayxn23 kayxn23 commented Aug 13, 2018

Copy link
Copy Markdown

ride share

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
What did your data structure look like at first? Did this structure evolve over time? Why? It was an array of a hash of an array of a hash and a hash. There were more layers at first, but over time the layers reduced because I wanted to make the information more quickly accessible.
What was your strategy for going through the data structure and gathering information? I used a lot of loops to gather information, and some enumerals
What was an example of something that was necessary to store in a variable? What was the scope of each of that variables? Why? I found it necessary to store the return value of certain methods to a variable, so that I could then use a loop through it to print the valuable within a message string.
What kinds of iteration did you use? Did you use .map? .each, .each_value, .reduce ; No I did not use .map but now I will try to.
Were some calculations easier than others? Why? Yes, because they could be found by using one loop, whereas in some others in nested loops I had to pay close attention to the scope. If a variable or calculation is in the wrong scope the method could end up doing extra unproductive work or returning an incorrect value.

@CheezItMan

Copy link
Copy Markdown

Nice documentation in your code, and good use of Enumerables like .reduce. Nicely done, you hit all the learning goals for the project!

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