-
Notifications
You must be signed in to change notification settings - Fork 48
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
Space - Yieni #28
base: master
Are you sure you want to change the base?
Space - Yieni #28
Conversation
Ride ShareMajor Learning Goals/Code Review
Functional Requirements
Overall Feedback
Code Style Bonus AwardsWas the code particularly impressive in code style for any of these reasons (or more...?)
SummaryOverall well done. See my notes, but it's mostly cosmetic changes to your code. You hit all the learning goals here. |
puts "How many trips did each driver make?" | ||
puts "\n" | ||
|
||
def driver_trips(ride_share_rides) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the methods here, but I suggest putting the method bodies/definitions at the top of the file and the main program code below, so the method bodies don't break up the flow of the program. Let me know if this is unclear.
@@ -0,0 +1,253 @@ | |||
ride_share_trips = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I strongly suggest setting your default indentation to 2 spaces.
@@ -0,0 +1,253 @@ | |||
ride_share_trips = [ | |||
{ | |||
'DR001' => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also use symbols as keys
'DR001' => [ | |
DR001: [ |
Assignment Submission: Ride Share
Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.
Reflection
.map
? If so, when? If not, why, or when would be a good opportunity to use it?.each
iteration. I did not use the enumerable.map
because I did not need to transform any of my arrays or hashes.