Protocols All The Way Down - dotSwift, Paris, January 2018

C4861b1dfdf3bbb21faec4a1acdf183d?s=47 Ellen Shapiro
January 29, 2018

Protocols All The Way Down - dotSwift, Paris, January 2018

A talk about the benefits and drawbacks of Protocol Oriented Programming, and protocols with default implementations.

Video:
https://www.dotconferences.com/2018/01/ellen-shapiro-protocols-all-the-way-down

Playground:
https://github.com/designatednerd/ProtocolPlayground

C4861b1dfdf3bbb21faec4a1acdf183d?s=128

Ellen Shapiro

January 29, 2018
Tweet

Transcript

  1. 1.

    PROTOCOLS ALL THE WAY DOWN DOT SWIFT | PARIS, FRANCE

    | JANUARY 2018 @DESIGNATEDNERD | BAKKENBAECK.COM | JUSTHUM.COM
  2. 2.
  3. 4.
  4. 5.
  5. 8.
  6. 9.
  7. 10.
  8. 11.
  9. 13.
  10. 14.
  11. 15.
  12. 16.
  13. 17.
  14. 18.
  15. 19.
  16. 20.
  17. 21.
  18. 22.
  19. 23.
  20. 24.
  21. 25.
  22. 27.
  23. 28.
  24. 29.
  25. 30.
  26. 31.
  27. 32.
  28. 33.
  29. 34.
  30. 35.
  31. 37.
  32. 38.
  33. 40.
  34. 41.
  35. 42.
  36. 43.
  37. 44.
  38. 45.
  39. 47.
  40. 48.
  41. 49.
  42. 50.
  43. 51.
  44. 52.
  45. 53.
  46. 54.
  47. 55.
  48. 56.
  49. 57.
  50. 58.
  51. 63.
  52. 64.
  53. 65.
  54. 66.
  55. 67.
  56. 68.
  57. 69.
  58. 70.
  59. 71.
  60. 80.
  61. 81.
  62. 82.
  63. 85.

    > Do I need this to work on all instances

    and/or subclasses of a particular thing? Extension! > Do I need this method to work only when I say it should, or in a particular combination of circumstances? Default implementation! > Does this always need to be called from a particular lifecycle or delegate method? Subclass!
  64. 87.
  65. 89.

    LINKS! > Protocol-Oriented Programming, WWDC 2015 developer.apple.com/videos/play/wwdc2015/408 > The ghost

    of Swift Bugs Future, Alexandros Salazar nomothetis.svbtle.com/the-ghost-of-swift-bugs- future
  66. 90.

    PHOTO CREDITS! > Businessman, by Daniel X. O'Neil flickr.com/photos/juggernautco/6037175371 >

    Hammered Screw, by Justin Baeder flickr.com/photos/justinbaeder/5317820857 > Knot, by JP Davidson flickr.com/photos/jpdavidsonimages/4677642617