Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lunch & Learn - SOLID Principles

Lunch & Learn - SOLID Principles

Avatar for Edgar Gonzalez

Edgar Gonzalez

November 09, 2015

Other Decks in Programming

Transcript

  1. WHAT A set of Object-Oriented Design principles identified by Robert

    C. Martin (Uncle Bob) and grouped together by Michael Feathers.
  2. A class should have one, and only one, reason to

    change SINGLE RESPONSIBILITY PRINCIPLE SEE https://docs.google.com/open?id=0ByOwmqah_nuGNHEtcU5OekdDMkk
  3. You should be able to extend classes behavior, without modifying

    it. OPEN CLOSED PRINCIPLE SEE http://docs.google.com/a/cleancoder.com/...
  4. Derived classes must be substitutable for their base classes. LISKOV

    SUBSTITUTION PRINCIPLE SEE http://docs.google.com/a/cleancoder.com/...
  5. Make fine grained interfaces that are client specific. INTERFACE SEGREGATION

    PRINCIPLE SEE http://docs.google.com/a/cleancoder.com/...