Pro Design Patterns in Swift (Paperback)

Adam Freeman

買這商品的人也買了...

商品描述

The Swift programming language has transformed the world of iOS development and started a new age of modern Cocoa development. Pro Design Patterns in Swift shows you how to harness the power and flexibility of Swift to apply the most important and enduring design patterns to your applications, taking your development projects to master level.

This book will teach you those design patterns that have always been present at some level in your code, but may not have been recognized, acknowledged, or fully utilized. Implementation of specific pattern approaches will prove their value to any Swift developer.

Best-selling author Adam Freeman explains how to get the most from design patterns. He starts with the nuts-and-bolts and shows you everything through to advanced features, going in-depth to give you the knowledge you need.

Pro Design Patterns in Swift brings design patterns to life and shows you how to bring structure and scale to your Swift code with a practical, no-nonsense approach.

In this book, you’ll learn:

  • Gain a solid, practical understanding of why and when design patterns are useful
  • Master classic patterns like singleton, abstract factory, chain of responsibility, and observer
  • Discover less well-known patterns like memento, composite, command, and mediator
  • Understand how Swift provides essential language features for writing well-structured code that is easy to understand, simple to test and readily maintainable.
  • Learn how to consume the Cocoa API to implement classic design patterns
  • Build on your existing programming knowledge to get up and running with design patterns in Swift quickly and effectively

 

What you’ll learn

  • Gain a solid, practical understanding of why and when design patterns are useful
  • Master classic patterns like singleton, abstract factory, chain of responsibility, and observer
  • Discover less well-known patterns like memento, composite, command, and mediator
  • Understand how Swift provides essential language features for writing well-structured code that is easy to understand, simple to test and readily maintainable.
  • Learn how to consume the Cocoa API to implement classic design patterns
  • Build on your existing programming knowledge to get up and running with design patterns in Swift quickly and effectively

Who this book is for

Any professional or aspiring iOS developer will find productivity, efficiency, and effectiveness of software development enhanced by the methods and practice delivered by ProDesign Patterns in Swift.

Table of Contents

Part 1 - Getting Started

 

1. Understanding Design Patterns

2. Getting Used to Xcode

3. Creating the SportsStore App

 

Part 2 - The Creation Patterns

 

4. The Object Template Pattern

5. The Prototype Pattern

6. The Singleton Pattern

7. The Object Pool Pattern

8. Object Pool Variations

9. The Factory Method Pattern

10. The Abstract Factory Pattern

11. The Builder Pattern

 

Part 3 - The Structural Patterns

 

12. The Adapter Pattern

13. The Bridge Pattern

14. The Decorator Pattern

15. The Composite Pattern

16. The Facade Pattern

17. The Flyweight Pattern

18. The Proxy Pattern

 

Part 4 - The Behavioral Patterns

 

19. The Chain of Responsibility Pattern

20. The Command Pattern

21. The Mediator Pattern

22. The Observer Pattern

23. The Memento Pattern

24. The Strategy Pattern

25. The Visitor Pattern

26. The Template Method Pattern

 

Part 5 - The MVC Pattern

27. The MVC Pattern

商品描述(中文翻譯)

《Pro Design Patterns in Swift》這本書展示了如何利用Swift的強大和靈活性,將最重要和持久的設計模式應用於您的應用程序,將您的開發項目提升到專家級別。

這本書將教您那些一直存在於您的代碼中的設計模式,但可能沒有被認識、承認或充分利用。實施特定的模式方法將證明它們對任何Swift開發人員的價值。

暢銷作家Adam Freeman解釋了如何充分利用設計模式。他從基礎知識開始,並通過高級功能向您展示一切,深入探討,為您提供所需的知識。

《Pro Design Patterns in Swift》將設計模式變得生動起來,並以實用、直接的方式向您展示如何為您的Swift代碼帶來結構和規模。

在這本書中,您將學到:

- 獲得對設計模式何時何地有用的堅實、實用的理解
- 掌握單例、抽象工廠、責任鏈和觀察者等經典模式
- 發現較少知名的模式,如備忘錄、組合、命令和中介者
- 了解Swift提供的編寫結構良好、易於理解、簡單測試和易於維護的代碼所需的基本語言功能
- 學習如何使用Cocoa API來實現經典設計模式
- 在現有的編程知識基礎上,快速有效地開始使用Swift中的設計模式

這本書適合任何專業或有抱負的iOS開發人員,他們將通過《Pro Design Patterns in Swift》提供的方法和實踐來提高軟件開發的生產力、效率和效果。

目錄:

第1部分 - 入門

1. 理解設計模式
2. 熟悉Xcode
3. 創建SportsStore應用程序

第2部分 - 創建模式

4. 對象模板模式
5. 原型模式
6. 單例模式
7. 對象池模式
8. 對象池變體
9. 工廠方法模式
10. 抽象工廠模式
11. 建造者模式

第3部分 - 結構模式

12. 適配器模式
13. 橋接模式
14. 裝飾器模式
15. 組合模式
16. 外觀模式
17. 享元模式
18. 代理模式