The Prime Directive – S.O.L.I.D. in swift.

The Prime Directive is not just a set of rules, but a philosophy.
Captain JeanLuc Picard

Object-Oriented Programming is, arguably, the modern way of seeing, and writing, code for programs today.

The OOP paradigm is built, largely, on a set of principles with the acronym S.O.L.I.D.

We are going to explore these rules using swift as the base language and also ask the question: Why the fuss?

S.O.L.I.D. stands for:
Single Responsibility Principle
Open-Closed Principle
Liskov Substitution Principle
Interface Segregation Principle
Dependency Inversion Principle

Each week we will take a principle and see how this works in swift.
At the end of the series, we will find an answer to the question – and hope it tells us more than just 42!

Join the Conversation


Leave a comment

Your email address will not be published. Required fields are marked *