I really recommend this post. It includes a great simple example of how to use protocol extensions instead of having an if/else-if statements. It also includes a few very good arguments to why the result is much better. Just read it.
This is a must read for every software developer. A walkthrough of all the important principles: Single Responsibility, Open/Closed, Dependency Inversion, Inversion of Control and more. I didn’t know what the Hollywood principle is 🙂
This piece from Apple’s official documentation describes the Class Clusters design pattern and how it is used in the Foundation framework. It’s one of those things we use everyday and never stopped to read about…