Skip to content

Conversation

@loganjacob76
Copy link

Mod 1 Pre-work.

Copy link

@ap2322 ap2322 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logan, overall great work on this. Good job getting into extensions too!

Comment on lines +4 to +9
if frog == 1
puts "#{frog} speckled frog sat on a log eating some most delicious bugs. One jumped in the pool where its nice and cool, then there were no more speckled frogs!"
elsif frog == 2
puts "#{frog} speckled frogs sat on a log eating some most delicious bugs. One jumped in the pool where its nice and cool, then there was #{frog - 1} speckled frog."
else
puts "#{frog} speckled frogs sat on a log eating some most delicious bugs. One jumped in the pool where its nice and cool, then there were #{frog - 1} speckled frogs."
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work catching the different cases. Refactor consideration: How might you DRY up the repeated phrases in here?

Comment on lines +29 to +44
if number % 3 == 0 && number % 5 == 0 && number == ending_num
print "FizzBuzz "
elsif number % 3 == 0 && number == ending_num
print "Fizz "
elsif number % 5 == 0 && number == ending_num
print "Buzz "
elsif number == ending_num
print "#{number} "
elsif number % 3 == 0 && number % 5 == 0 && !(number == ending_num)
print "FizzBuzz, "
elsif number % 3 == 0 && !(number == ending_num)
print "Fizz, "
elsif number % 5 == 0 && !(number == ending_num)
print "Buzz, "
else
print "#{number}, "
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This large conditional is ripe for refactoring.

Comment on lines +15 to +25
def add_topping(new_topping)
toppings << new_topping
end

def remove_topping(bad_topping)
toppings.delete(bad_topping)
end

def change_protein(new_protein)
@protein = new_protein
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work modifying the class attributes

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