- 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
Skill Level Intermediate
- [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.
1. Protocol-Oriented Programming
4. Implement the Weather App Using POP
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.