Book Image

Mastering Swift

By : Jon Hoffman
Book Image

Mastering Swift

By: Jon Hoffman

Overview of this book

Table of Contents (22 chapters)
Mastering Swift
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


Design patterns are solutions to software design problems that we tend to see over and over again in real world application design. These patterns are designed to help us create reusable and flexible code.

If we looked at the examples in the chapter carefully, we would notice that one of the backbones of design patterns is protocols. Almost all design patterns (the singleton design pattern is an exception) use protocols to help us create very flexible and reusable code.

If this was the first time that you really looked at design patterns, you probably noticed some similarities to strategies that you used in the past in your own code. This is expected when experienced developers are first introduced to design patterns. I would also encourage you to read about design patterns more because they will definitely help you to create more flexible and reusable code.