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

Protocol Oriented Programming

zezzi
December 11, 2017

Protocol Oriented Programming

zezzi

December 11, 2017
Tweet

More Decks by zezzi

Other Decks in Technology

Transcript

  1. TEXT OBJECT ORIENTED PROGRAMMING ▸ Object Oriented Programming: Design is

    focused on Objects. ▸ Interfaces: Are a contract of what needs to be implemented. And are used as a way to achieve polymorphism. They are a back seat.
  2. TEXT DOG PROTOCOL DOG PROTOCOL EXTENSION SERVICE DOG PROTOCOL SECURITY

    DOG PROTOCOL PASTOR ALEMAN LABRADOR SERVICE DOG PROTOCOL EXTENSION SERVICE DOG PROTOCOL EXTENSION
  3. TEXT INHERITANCE TO INTRUSIVE ▸ 1 super class ▸ Bloating

    your super class ▸ Changes can become difficult when inheritance is over used.
  4. TEXT PROTOCOLS ▸ The “I” in SOLID ▸ No client

    should depend on (or know about) methods it does not use ▸ Makes code modular ▸ Testable ▸ Small separated interfaces == focused API ▸ Restrict access