Design Patterns by Tutorials: Updated for iOS 12 and Swift 4.2!

We’re excited to announce that the second edition of our book Design Patterns by Tutorials is now available — check out what’s been updated in the latest edition! By Chris Belanger.

Save for later
Share
You are currently viewing page 2 of 2 of this article. Click here to view the first page.

Advanced Design Patterns

This section covers design patterns that are very useful but only in rare or specific circumstances. These patterns may be exactly what you need for a particular case, but they may not be useful on every project. However, it’s best to be aware of them as you’ll undoubtedly run across them at some point in your development career.

  • Chapter 18: Flyweight Pattern: 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.
  • Chapter 19: Mediator Pattern: 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 by another colleague.
  • Chapter 20: Composite Pattern: This is a structural pattern that groups a set of objects into a tree so that they may be manipulated as though they were one object. If your app’s class hierarchy forms a branching pattern, trying to create two types of classes for branches and nodes can make it difficult for those classes to communicate. Learn how to reduce complexity and solve this problem with this pattern.
  • Chapter 21: Command Pattern: This is a behavioral pattern that encapsulates information to perform an action into a command object. Learn how you can model the concept of executing an action and to use this pattern whenever you want to create actions that can be executed on different receivers.
  • Chapter 22: Chain of Responsibility Pattern: 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.
  • Chapter 23: Coordinator Pattern (New!): The 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 in this chapter.

Class diagrams for each chapter make it easy to understand what’s going on.

About the Authors

Meet the well-designed author team behind this book:

Joshua Greene is an author of this book. He is an experienced iOS developer who loves creating elegant apps. When he’s not slinging code, he enjoys martial arts, Netflix and spending time with his wonderful wife and two daughters. You can reach him on Twitter at @jrg_developer.

Jay Strawn is an author of this book. She is a former librarian and is passionate about languages both human and code based. When she’s not working as a developer, Jay enjoys being an ESL conversation partner and reading zines.

Also Available: The iOS 12 Launch Bundle

So many of you have asked for a book bundle to go with the iOS 12 update season, and we’re happy to announce the release of the iOS 12 Launch Party Bundle!

This three-book bundle contains our newest iOS 12 books:

This bundle is on sale for only $99.99 — that’s a savings of 33%! But don’t wait, since this bundle won’t be available forever.

Enter the iOS 12 Launch Party Giveaway

Speaking of sweet deals, be sure to check out the great prizes we’re giving away this year with the iOS 12 Launch Party, including over $9,000 in giveaways!

To be eligible for for this epic iOS 12 giveaway, all you have to do is leave a comment on the original launch post, letting us know which book or course is your favorite on this list — or which upcoming book or course you’re most excited about!

Where to Go From Here?

Design patterns are incredibly useful, no matter what language or platform you develop for.

Not only does Design Patterns by Tutorials cover each pattern in theory, but you’ll also work to incorporate each pattern in a real-world app that’s included with each chapter. Learn by doing, in the step-by-step fashion you’ve come to expect in the other books in our by Tutorials series.

Here’s how to get your hands on a copy:

The book is available for a limited time for just $44.99 as part of our iOS 12 Launch Party celebration. But don’t wait, as this deal won’t be available forever.

We hope you enjoy this update, and stay tuned for a few more updates to come as part of our iOS 12 Launch Party!

Chris Belanger

Contributors

Chris Belanger

Author

Over 300 content creators. Join our team.