Sign in

“Swifty” explained.

  • Single Responsibility principle
  • Open-closed principle
  • Liskov Substitution Principle
  • Interface Segregation Principle
  • Dependency Inversion Principle

Those are design principles to always keep in mind when coding to make better software. They make software more maintainable, flexible, and testable.

Single Responsibility Principle

This is about the separation of concerns. A class should only have a single responsibility.
Another way to define this is that “a class or module should have one, and only one, reason to be changed”, this is because the class is supposed to have, as mentioned, only one responsibility. …

Matias Gil E

Coding iOS. Software developer, Ms Computer and Information Sciences.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store