The “Gang of Four” software design patterns have been around for decades. There’s a good reason they’re still so popular today. These patterns embody proven best practices that result in more functional, robust, and future-proof code. In this course, instructor Károly Nyistor teaches you how to implement the most useful design patterns in Swift, using features like protocol-oriented programming, type extensions, and value types. Learn about their benefits and limitations and then explore each group of patterns in detail. Károly reviews creational patterns such as Singleton, Prototype, and Factory Method; structural patterns including Adapter, Façade, and Proxy; and behavioral patterns such as Chain of Responsibility, Iterator, Observer, and State. Each tutorial includes coding examples that show how to implement the patterns in real-world projects.
Why use design patterns?
The limits of design patterns
Using the Singleton pattern
Coping and cloning with the Prototype pattern
Polymorphic instantiation with Factory Method
Iterating with the Iterator pattern
Removing dependencies with the Observer pattern
Reducing complex conditional logic with the State pattern
Skill Level Intermediate
Show MoreShow Less
You started this assessment previously and didn’t complete it. You can pick up where you left off, or start over.