Skip to content

12q/Simply-Solid-Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages