Contained in: Design Patterns by Tutorials
design patterns
iOS & Swift
Chapter in Design Patterns by Tutorials
What are Design Patterns?
Oct 2 2019 · Chapter
Design patterns aren’t concrete implementations, but rather, serve as starting points for writing code. They describe generic solutions to problems that many experienced developers have encountered many times before. What does this mean exactly...? Learn this and more in this chapter…
iOS & Swift
Design Patterns by Tutorials
Oct 2 2019 · Book
Learn design patterns with Swift! Design patterns are incredibly useful, no matter what language or platform you develop for. Using the right pattern for the right job can save you time, create less maintenance work for your team and ultimately let you create more great things with less effort. Every…
iOS & Swift
Chapter in Design Patterns by Tutorials
Introduction
Oct 2 2019 · Chapter
Design Patterns: Elements of Reusable, Object-Oriented Software, the first book to ever describe design patterns, inspired the revolutionary idea of reusable, template solutions to common software development problems. Design patterns aren’t specific to a particular situation, but rather, they are solutions you can adapt and use in countless…
iOS & Swift
Chapter in Design Patterns by Tutorials
Model-View-Controller Pattern
Oct 2 2019 · Chapter
…controller (MVC) pattern separates objects into three distinct types: models, views and controllers! MVC is very common in iOS programming, because it's the design pattern that Apple chose to adopt heavily in UIKit. In this chapter you’ll implement the MVC pattern as you start to build…
iOS & Swift
Chapter in Design Patterns by Tutorials
Mediator Pattern
Oct 2 2019 · Chapter
This is a behavioral design pattern that encapsulates how objects, called colleagues for this pattern, communicate with one another. This pattern is useful to separate interactions between colleagues into an object, the mediator. Learn how to use it when you need one or more colleagues to act upon events initiated…
iOS & Swift
Chapter in Design Patterns by Tutorials
Builder Pattern
Oct 2 2019 · Chapter
The builder pattern allows the creation of complex objects step-by-step, instead of all at once, via an initializer. For example, you can use…
iOS & Swift
Chapter in Design Patterns by Tutorials
Conclusion
Oct 2 2019 · Chapter
…revisit that quote from the beginning of the book, taken from Design Patterns: Elements of Reusable, Object-Oriented Software: “Designing object-oriented software is hard.” Hopefully you’ve seen in this book that good software design isn’t hard — it just takes a little forethought and planning. To call such…
iOS & Swift
Chapter in Design Patterns by Tutorials
How to Read a Class Diagram
Oct 2 2019 · Chapter
…development. Instead, you'll learn a subset of UML in this chapter that's useful for creating class diagrams and describing design patterns…
iOS & Swift
Chapter in Design Patterns by Tutorials
Facade Pattern
Oct 2 2019 · Chapter
The facade pattern is a structural pattern that provides a simple interface to a complex system. Use this pattern whenever you have a system made…
iOS & Swift
Chapter in Design Patterns by Tutorials
Model-View-ViewModel Pattern
Oct 2 2019 · Chapter
Use this pattern when you need to transform models into another representation for a view. This pattern compliments MVC especially well. You’ll embark on…
iOS & Swift
Chapter in Design Patterns by Tutorials
Chain-of-Responsibility Pattern
Oct 2 2019 · Chapter
This is a behavioral design pattern that allows an event to be processed by one of many handlers. See how to use this pattern whenever you have a group of related objects that handle similar events but vary based on event type, attributes or something else related to the event…
iOS & Swift
Chapter in Design Patterns by Tutorials
Coordinator Pattern
Oct 2 2019 · Chapter
…coordinator pattern is a structural design pattern for organizing flow logic between view controllers. This pattern can be adopted for only part of an app, or it can be used as an “architectural pattern” to define the structure of an entire app. You’ll see both of these at work…
iOS & Swift
Chapter in Design Patterns by Tutorials
Strategy Pattern
Oct 2 2019 · Chapter
The strategy pattern defines a family of interchangeable objects that can be set or switched at runtime: the object using a strategy, the strategy protocol…
iOS & Swift
Chapter in Design Patterns by Tutorials
Flyweight Pattern
Oct 2 2019 · Chapter
This creational design pattern minimizes memory usage and processing. It also provides objects that all share the same underlying data, thus saving memory. Learn about flyweight objects and static methods to return them…
iOS & Swift
Chapter in Design Patterns by Tutorials
Delegation Pattern
Oct 2 2019 · Chapter
The delegation pattern enables an object to use another “helper” object to provide data or perform a task rather than the task itself. By relying…
iOS & Swift
Chapter in Design Patterns by Tutorials
About the Cover
Oct 2 2019 · Chapter
Design Patterns by Tutorials Coral reefs contain some of the most amazing, colorful and diverse ecosystems on Earth. Although coral reefs make up just a tiny fragment of the ocean’s underwater area, they support over 25% of known marine life. It’s rather difficult to underestimate the value that…
iOS & Swift
Chapter in Design Patterns by Tutorials
State Pattern
Oct 2 2019 · Chapter
The state pattern is a behavioral pattern that allows an object to change its behavior at runtime. It does so by changing its current state…
iOS & Swift
Chapter in Design Patterns by Tutorials
Prototype Pattern
Oct 2 2019 · Chapter
…another pattern to fix both of these problems: the state pattern. Continue onto the next chapter to learn about the state design pattern and continue building out MirrorPad…
iOS & Swift
Chapter in Design Patterns by Tutorials
Observer Pattern
Oct 2 2019 · Chapter
The observer pattern lets one object observe changes on another object. You’ll learn two different ways to implement the observer pattern in this chapter…
iOS & Swift
Chapter in Design Patterns by Tutorials
Iterator Pattern
Oct 2 2019 · Chapter
The iterator pattern provides a standard way to loop through a collection. Use the iterator pattern when you have a class or struct that holds…