Advertisement
IbrahimHassan

Solid In Swift

Oct 26th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Same Responsibility Principle - Each entity should have only one responsibility (Granular Classes)
  2. Open / Close Principle - Entities should be Open For Extension Close for Modifications { If you have to modify another class each time you add expected behavior }
  3. Liskov Substitution Principle - Subclasses should not break the expectations of the parent class. You don't have to know the concrete type of a (sub) class to know it behaves in an expected way.
  4. Interface Segregation Principle - Instead of one monolithic interface, break an interface up based on what implementers should be doing. Keeps consumers from having too much Power
  5. Dependency Inversion Principle - High-level modules should not know the details of low-level modules.
  6.  
  7. Solid in Swift
  8. https://github.com/prolificinteractive/SOLID-Principles
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement