Swift 4: Protocol-Oriented Programming

Swift 4: Protocol-Oriented Programming2018-11-22T18:03:54+00:00

Project Description

You can watch the full course on Lynda Swift 4: Protocol-Oriented Programming and LinkedIn Learning

If you plan on designing and implementing software using Swift, you need to understand the protocol-oriented programming (POP) paradigm.
In this course, take a closer look at POP, and learn how to work with it to more efficiently approach app development. First, review what POP is, exactly, and how it differs from the classical object-oriented programming approach. Next, learn about the pillars of this new paradigm: protocol extensions, protocol inheritance, and protocol composition. Protocol extensions let you define default behavior for conforming types without defining a base class. Protocol inheritance is a powerful feature that lets you create more granular designs. Swift does not allow multiple inheritance for classes—but with protocol composition, Swift types can adopt multiple protocols. Plus, explore generics, and see how to implement a fully functional app using a protocol-oriented approach.

Topics Include:
Comparing object-oriented programming with protocol-oriented programming
Methods and class-bound protocols
Adopting a protocol
Generics
Declaring asynchronous behavior
Preparing and implementing fallback logic
Implementing an app using protocol-oriented programming

Duration:
1h 44m

[/fusion_text][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]