When you enroll through our links, we may earn a small commission—at no extra cost to you. This helps keep our platform free and inspires us to add more value.

Design Patterns in Swift
Discover the modern implementation of design patterns with Swift

This Course Includes
udemy
4.4 (1.4K reviews )
8h 40m
english
Online - Self Paced
professional certificate
Udemy
About Design Patterns in Swift
Course Overview
This course provides a comprehensive overview of
Design Patterns in Swift
from a practical perspective. This course in particular covers patterns with the use of:
The latest versions of the Swift programming language
Use of modern programming approaches: dependency injection, reactive programming and more
Use of modern developer tools
Discussions of pattern variations and alternative approaches This course provides an overview of all the Gang of Four (GoF) design patterns as outlined in their seminal book, together with modern-day variations, adjustments, discussions of intrinsic use of patterns in the language.
What are Design Patterns?
Design Patterns are reusable solutions to common programming problems. They were popularized with the 1994 book _Design Patterns: Elements of Reusable Object-Oriented Software_ by _Erich Gamma, John Vlissides, Ralph Johnson and Richard Helm_(who are commonly known as a Gang of Four, hence the GoF acronym). The original book was written using C++ and Smalltalk as examples, but since then, design patterns have been adapted to every programming language imaginable: Swift, C#, Java, PHP and even programming languages that aren't strictly object-oriented, such as JavaScript. The appeal of design patterns is immortal: we see them in libraries, some of them are intrinsic in programming languages, and you probably use them on a daily basis even if you don't realize they are there.
What Patterns Does This Course Cover?
This course covers
all
the GoF design patterns. In fact, here's the full list of what is covered:
_SOLID Design Principles_ : Single Responsibility Principle, Open-Closed Principle, Liskov Substitution Principle, Interface Segregation Principle and Dependency Inversion Principle
_Creational Design Patterns_ : Builder, Factories (Factory Method and Abstract Factory), Prototype and Singleton
_Structrural Design Patterns_ : Adapter, Bridge, Composite, Decorator, Façade, Flyweight and Proxy
_Behavioral Design Patterns_ : Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Null Object, Observer, State, Strategy, Template Method and Visitor
Who Is the Course For?
This course is for Swift developers who want to see not just textbook examples of design patterns, but also the different variations and tricks that can be applied to implement design patterns in a modern way.
Presentation Style
This course is presented as a (very large) series of live demonstrations. All demos are single-file, so you can download the file attached to the lesson and run it in CLion, XCode or another IDE of your choice (or just on the command line). This course does not use UML class diagrams; all of demos are live coding. I use Visual Studio Code for the demos.
What You Will Learn?
- Recognize and apply design patterns .
- Refactor existing designs to use design patterns .
- Reason about applicability and usability of design patterns .
- Implement each pattern in a coding exercise.