In this article, I will talk about a refactoring called replace conditional with polymorphism [https://thoughtbot.com/blog/refactoring-replace-conditional-with-polymorphism] that we did recently at Kactus. By the end of the article, you will be able to identify probably many places where you could use this technique in your Rails application.
Our candidates sometimes ask us during interviews what our technical challenges are. It may not obvious how technology can help drastically improve the user experience for booking professional events, so let's take a small detour on the historical alternative to Kactus, and what we do differently. Traditional actors we are