Stop Using Case Statements in Ruby
Are you using the full power of OOP (Object-Oriented Programming) or are you missing out? If you are taking decisions based on the type of an object then you are missing out on one important OOP feature: polymorphism. Type decisions are usually done inside case statements (which are not OO friendly) & in this article … Read more