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

Deep dive into Protocols

Deep dive into Protocols

Ritesh Gupta

July 05, 2017
Tweet

More Decks by Ritesh Gupta

Other Decks in Programming

Transcript

  1. deep dive into Protocols (Swift Delhi Meetup, Chapter 3) ~

    Ritesh Gupta
  2. `Protocol-Oriented Programming in Swift` https://developer.apple.com/videos/play/wwdc2015/408/ WWDC - 2015

  3. `Protocol and Value Oriented Programming in UIKit Apps` https://developer.apple.com/videos/play/wwdc2016/419/ WWDC

    - 2016
  4. None
  5. None
  6. None
  7. playground demos..

  8. protocol ->

  9. protocol -> protocol extension ->

  10. protocol -> protocol extension -> protocol 
 constrained extension ->

  11. self (refers to the `object`) vs Self
 (refers to the

    `type` that conforms to a protocol)
  12. https://krakendev.io/blog/generic-protocols-and-their- shortcomings http://austinzheng.com/2015/09/29/swift-generics-pt-2/ http://www.russbishop.net/swift-associated-types

  13. protocol is not a silver bullet.. http://chris.eidhof.nl/post/protocol-oriented-programming/

  14. None