Take a closer look at the protocol-oriented programming paradigm, and learn how to work with it to more efficiently approach app development with Swift.
- [Karoly] Hello, I'm Karoly Nyisztor. I've been developing software systems for more than two decades now. Most developers are familiar with object-oriented programming concepts. But in Swift, we can take a different approach by using protocol-oriented programming. This allows us to trade in complex class hierarchies and unwanted legacies for clean, granular designs. In this course we'll start by comparing the object-oriented approach with the protocol-oriented programming way of designing software.
Then we'll take a deep dive into protocols, polymorphism, and the pillars of protocol-oriented programming, which are protocol inheritance, protocol extensions, and protocol composition. We'll also dedicate the chapter to generics. They are deeply rooted in the language and walk hand-in-hand with protocols. Finally, we'll build a fully functional weather app using a protocol-oriented approach. I'm really excited to share what I know about protocol-oriented programming with you. Let's get started.
- Comparing object-oriented programming with protocol-oriented programming
- Methods and class-bound protocols
- Adopting a protocol
- Declaring asynchronous behavior
- Preparing and implementing fallback logic
- Implementing an app using protocol-oriented programming