-
Notifications
You must be signed in to change notification settings - Fork 54
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
Earth-Anya #54
base: master
Are you sure you want to change the base?
Earth-Anya #54
Conversation
i added the optional
removed unnecessary comment
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.
Ride Share
Major Learning Goals/Code Review
Criteria | yes/no, and optionally any details/lines of code to reference |
---|---|
Correctly creates, reads, and modifies variables | ✔️ |
Correctly creates and accesses arrays | ✔️ |
Correctly creates and accesses hashes | ✔️ |
Reasonably organizes large amounts of related data into nested arrays and hashes | ✔️ |
Correctly iterates through a nested data structure using loops and/or Enumerable methods | ✔️ |
Reasonably organizes small pieces of code into methods, and calls/invokes those methods | ✔️ |
Functional Requirements
Functional Requirement | yes/no |
---|---|
To the terminal, the program outputs the correct number of rides each driver has given | ✔️ |
... outputs the total amount of money each driver has made | ✔️ |
... outputs the average rating for each driver | ✔️ |
... outputs which driver made the most money | ✔️ |
... outputs which driver has the highest average rating | ✔️ |
Overall Feedback
Great work on this project! You did a great job dividing up functionality into methods, and used enumerable methods very well to write clear, efficient code. Minor note: when we were doing to pull request (pr) together, I forgot to mention there are reflection question to complete when you do the pr. Next time! Keep up the hard work!
Overall Feedback | Criteria | yes/no |
---|---|---|
Green (Meets/Exceeds Standards) | 4+ in Code Review && 3+ in Functional Requirements | ✔️ |
Yellow (Approaches Standards) | 2-3 in Code Review && 2+ in Functional Requirements | |
Red (Not at Standard) | 0,1 in Code Review or 0,1 in Functional Reqs, or assignment is breaking/doesn’t run with less than 5 minutes of debugging |
Code Style Bonus Awards
Was the code particularly impressive in code style for any of these reasons (or more...?)
Quality | Yes? |
---|---|
Perfect Indentation | ✅ |
Elegant/Clever | ✅ |
Descriptive/Readable | ✅ |
Concise | ✅ |
Logical/Organized | ✅ |
@@ -22,13 +28,150 @@ | |||
# You should be copying and pasting the literal data | |||
# into this data structure, such as "DR0004" | |||
# and "3rd Feb 2016" and "RD0022" | |||
# | |||
drivers_hash = { |
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.
Great work formatting this data structure for readability.
|
||
######################################################## | ||
# Step 4: Total Driver's Earnings and Number of Rides | ||
def line |
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.
Nice choice to put this in a method :)
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.
hrmm, but I don't see where it's called.
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?