Swift 3 Protocol-Oriented Programming - Second Edition
暫譯: Swift 3 協定導向程式設計 - 第二版

Jon Hoffman

  • 出版商: Packt Publishing
  • 出版日期: 2016-11-30
  • 售價: $1,700
  • 貴賓價: 9.5$1,615
  • 語言: 英文
  • 頁數: 218
  • 裝訂: Paperback
  • ISBN: 1787129942
  • ISBN-13: 9781787129948
  • 相關分類: Apple Developer
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Key Features

  • Leverage the power of protocol-oriented programming in your applications and learn from real world use cases
  • Create a flexible codebase with protocols and protocol extensions
  • Increase the overall productivity and performance of applications with protocol-oriented programming

Book Description

One of the most important additions to the new features and capabilities of the Swift programming language was an overhaul of Protocols. Protocol-oriented programming and first class value semantics have now become two incredibly powerful concepts at the heart of Swift’s design.

This book will help you understand the difference between object-oriented programming and protocol-oriented programming. It will demonstrate how to work with protocol-oriented programming using real world use cases. You will gain solid knowledge of the different types that can be used in Swift and the differences between value and reference types. You will be taught how to utilize the advanced features of protocol-oriented programming to boost the performance of your applications.

By the end of the book, you will have a thorough understanding of protocol-oriented programming and how to utilize it to build powerful, practical applications.

What you will learn

  • Understand the difference between object-oriented programming and protocol-oriented programming
  • Explore the different types that Swift offers and what pitfalls to avoid
  • Error handling with do-try-catch block
  • Delve into Generics and Generic programming
  • Implement several design patterns in a protocol-oriented way
  • How to design applications by prioritizing the protocol first and the actual type second

About the Author

Jon Hoffman has over 20 years of experience in the field of information technology. Over those 20 years, Jon has worked in the areas of system administration, network administration, network security, application development, and architecture. Currently, Jon works as a senior software engineer for Syn-Tech Systems.

Jon has developed extensively for the iOS platform since 2008. This includes several apps that he has published in the App Store, apps that he has written for third parties, and numerous enterprise applications. What really drives Jon is the challenges the information technology field provides and there is nothing more exhilarating to him than overcoming a challenge.

You can follow Jon on his two blogs: http://masteringswift.blogspot.com and http://myroboticadventure.blogspot.com.

Some of Jon’s other interests are watching baseball (Go Sox) and basketball (Go Celtics). Jon also really enjoys Tae Kwon Do where he and his oldest daughter Kailey earned their black belts together early in 2014, Kim (his wife) earned her black belt in December 2014, and his youngest daughter is currently working towards her black belt.

Table of Contents

  1. Object-Oriented and Protocol-Oriented Programming
  2. Our Type Choices
  3. Catching Our Errors
  4. All About the Protocol
  5. Lets Extend Some Types
  6. Working with Generics
  7. Adopting Design Patterns in Swift
  8. Case Studies

商品描述(中文翻譯)

#### 主要特點
- 在您的應用程式中利用協議導向編程的力量,並從實際案例中學習
- 使用協議和協議擴展創建靈活的代碼庫
- 通過協議導向編程提高應用程式的整體生產力和性能

#### 書籍描述
Swift 程式語言中最重要的新特性和功能之一是對協議的全面改進。協議導向編程和一級值語義現在已成為 Swift 設計核心的兩個極其強大的概念。

本書將幫助您理解物件導向編程和協議導向編程之間的區別。它將展示如何使用實際案例來進行協議導向編程。您將獲得有關 Swift 中可用的不同類型及值類型和引用類型之間差異的扎實知識。您將學習如何利用協議導向編程的高級特性來提升應用程式的性能。

在本書結束時,您將對協議導向編程有透徹的理解,並知道如何利用它來構建強大且實用的應用程式。

#### 您將學到的內容
- 理解物件導向編程和協議導向編程之間的區別
- 探索 Swift 提供的不同類型及需避免的陷阱
- 使用 do-try-catch 區塊進行錯誤處理
- 深入了解泛型和泛型編程
- 以協議導向的方式實現多種設計模式
- 如何優先考慮協議而非實際類型來設計應用程式

#### 關於作者
**Jon Hoffman** 在資訊技術領域擁有超過 20 年的經驗。在這 20 年中,Jon 曾在系統管理、網路管理、網路安全、應用程式開發和架構等領域工作。目前,Jon 擔任 Syn-Tech Systems 的高級軟體工程師。

自 2008 年以來,Jon 在 iOS 平台上進行了廣泛的開發,包括他在 App Store 發布的幾個應用程式、為第三方撰寫的應用程式以及眾多企業應用程式。Jon 真正的驅動力來自於資訊技術領域所帶來的挑戰,對他來說,克服挑戰是最令人振奮的事情。

您可以在他的兩個部落格上關注 Jon: http://masteringswift.blogspot.com 和 http://myroboticadventure.blogspot.com。

Jon 的其他興趣包括觀看棒球(加油,紅襪隊)和籃球(加油,塞爾提克隊)。Jon 也非常喜歡跆拳道,他和他的長女 Kailey 在 2014 年初一起獲得黑帶,妻子 Kim 在 2014 年 12 月獲得黑帶,而他的幼女目前正在努力獲得黑帶。

#### 目錄
1. 物件導向與協議導向編程
2. 我們的類型選擇
3. 捕捉我們的錯誤
4. 全面了解協議
5. 讓我們擴展一些類型
6. 使用泛型
7. 在 Swift 中採用設計模式
8. 案例研究