-
Notifications
You must be signed in to change notification settings - Fork 13
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
Part of emp_review homework. #4
base: master
Are you sure you want to change the base?
Conversation
total += employee.salary | ||
end | ||
return total | ||
# @roster.reduce(0.0) {|sum, employee| sum += employee.salary} |
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'm guessing that you got this reduce from someone else? You're right, though, that this would be an alternative to what you wrote.
Jonathan - The work that you did looks good, but you didn't make it as far as I would have expected. I know that things are picking up for you on Rails, but we might want to revisit some of this later in the class to see if the path-of-Rails ends up clearing up basic objects for you over time. |
Got a few things here, floundered for awhile then called it quits. Frustrated! But, better progress today I think!