Skip to content

Conversation

rubyyan
Copy link

@rubyyan rubyyan commented Jul 25, 2013

Panda level completed.

def get_shows
puts "Enter a day of the week to see the shows:"
day = gets.chomp.downcase.capitalize
unless Show.where(day_of_week: day).empty?
Copy link
Member

Choose a reason for hiding this comment

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

I have a hard rule about unless/else ---- I wouldn't let it past a code review. ... It's hard to keep it in your brain; instead, keep to if/else.

unless with no else is fine.

@jwo
Copy link
Member

jwo commented Jul 29, 2013

Overall: pretty good!

I added a couple style points that you could look at.

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