Protocol, Swift way of thinking

Protocol Swift way of thinking

You ask any Swift lover, which features you love most on Swift. No doubt; it will be the way protocol works on Swift. Similar concepts like Interface lives on other languages, but the extensibility of protocol makes it shiny. By having protocol on its core Swift is build upon. So to understanding the Swift way … Continue the deep dive into the Protocol, Swift way of thinking

Composition, breaker of chains

Swift protocol composition

As we have learned on our last blog post that, Inheritance is the starting point of code coupling. We also had a hint about breaking that code coupling through composition. Here on this blog post we will initiate the talk about composition on Swift. We will talk about how we can achieve composition on Swift … Continue the deep dive into the Composition, breaker of chains

Inheritance, Initiator of coupling

Inheritance results Coupling

It all start with resolving the code duplication issue. The concept was pretty straightforward. Write the code once and use that code everywhere when needed. Why not! Who wants to write the same code multiple times. After all the duplicate code is a nightmare for code maintenance. So Inheritance was introduced. Introduction So we were … Continue the deep dive into the Inheritance, Initiator of coupling