DEV Community

Discussion on: dev.to codes! Collaborative coding experiment: The most liked comment picks the next line of code, day 4

Collapse
 
rafaelhashimoto profile image
RafaelHashimoto

Sorry if my big PR 😅

def lets_do_this
  # things a person can do that will change his humor
  what_have_i_done = "🥲" if big_mistakes
  how_i_feel_right_now =  what_have_i_done
end

def big_mistakes
  deploy_on_friday() || buy_twitter()
end

def buy_twitter
  raise AquisitionError, "I won't buy it" if user_base_has_bots?
rescue AquisitionError => e
   puts e.message
   true # because you can't step back
end

def user_base_has_bots?
  true # well... yes
end
Enter fullscreen mode Exit fullscreen mode