SOLID: Interface Segregation Principle (ISP)

🖋️ This article is one part of my series on Robert (Bob) C. Martin's SOLID principles. Introduction The Interface Segregation Principle is one that Bathrobe Bob designed himself. On the surface it looks like it only applies to static languages, which it shares somewhat with the previous entry in SOLID: The Liskov Substitution Principle . Let's see how we can apply it to duck-typed languages.…