12q / Simply-Solid-Swift

SOLID principles for Swift & Playgrounds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simply Solid Swift

Just another variation of SOLID for Swift (in Progress... )

Contents

Scheme

Single Responsibility Interface Segregation
🔸 Only one reason to change
🔸 Only one responsibility
🔸 Client should not be forced to implement methods it does not use
🔸 Fat Interfaces should be decoupled by its responsibilities
Open Close Liskov’s Substitution
🔸 Close for modification
🔸 Open for extension
🔸 Extended class should be substitutional with its Base class
🔸 Modification should not affect Base behavier
Dependency Inversion
🔸 Details depend on abstractions 🔸 Abstractions should not depend on details

Principles

Single Responsibility Principle

🔸 Only one reason to change
🔸 Only one responsibility

Avoid God classes

About

SOLID principles for Swift & Playgrounds


Languages

Language:Swift 100.0%