Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jonathanparrish
Copy link

Got a few things here, floundered for awhile then called it quits. Frustrated! But, better progress today I think!

total += employee.salary
end
return total
# @roster.reduce(0.0) {|sum, employee| sum += employee.salary}
Copy link
Contributor

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.

@masonfmatthews
Copy link
Contributor

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.

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