Swift 4 Protocol-Oriented Programming - Third Edition
暫譯: Swift 4 協定導向程式設計 - 第三版
Jon Hoffman
- 出版商: Packt Publishing
- 出版日期: 2017-10-04
- 售價: $1,830
- 貴賓價: 9.5 折 $1,739
- 語言: 英文
- 頁數: 210
- 裝訂: Paperback
- ISBN: 1788470036
- ISBN-13: 9781788470032
-
相關分類:
Apple Developer
-
其他版本:
Swift Protocol-Oriented Programming -- Fourth Edition
買這商品的人也買了...
-
$3,980$3,781 -
$1,890$1,796 -
$948Swift Programming: The Big Nerd Ranch Guide, 2/e (Paperback)
-
$2,000$1,900 -
$354$336 -
$2,040$1,938
相關主題
商品描述
Key Features
- Leverage the power of protocol-oriented programming in your applications and learn from real-world use cases
- Create a flexible code base with protocols and protocol extensions
- Leverage the power of generics in Swift 4 to create very flexible frameworks
Book Description
Swift has become the number one language used in iOS and macOS development. The Swift standard library is developed using protocol-oriented programming techniques, generics, and first-class value semantics; therefore, every Swift developer should understand these powerful concepts and how to take advantage of them in their application design.
This book will help you understand the differences 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 a solid knowledge of the various types that can be used in Swift and the differences between value and reference types. You will be taught how protocol-oriented programming techniques can be used to develop very flexible and easy-to-maintain code.
By the end of the book, you will have a thorough understanding of protocol-oriented programming and how to utilize it to build powerful and practical applications.
What you will learn
- Understand the differences between object-oriented programming and protocol-oriented programming
- Explore the different types that Swift offers and what pitfalls to avoid
- Delve into generics and generic programming
- Learn how to implement Copy-On-Write within your custom types
- Implement several design patterns in a protocol-oriented way
- Design applications by prioritizing the protocol first and the implementation types second
About the Author
Jon Hoffman has over 25 years of experience in the field of information technology. Over these 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. He has also developed mobile applications for the Android and Windows platforms. What really drives Jon the challenges that the field of information technology provides and there is nothing more exhilarating to him than overcoming a challenge.
Some of Jon’s other interests are spending time with his family, robotic projects, and 3D printing. 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 Kara is currently working towards her black belt.
Table of Contents
- Starting with the Protocol
- Our type choices
- Extensions
- Generics
- Object-Oriented Programming
- Protocol-Oriented Programming
- Adopting Design Patterns in Swift
- Case Studies
商品描述(中文翻譯)
**主要特點**
- 在您的應用程式中利用協定導向程式設計的力量,並從實際案例中學習
- 使用協定和協定擴展創建靈活的代碼基礎
- 利用 Swift 4 中的泛型力量來創建非常靈活的框架
**書籍描述**
Swift 已成為 iOS 和 macOS 開發中使用的第一語言。Swift 標準庫是使用協定導向程式設計技術、泛型和一級值語義開發的;因此,每位 Swift 開發者都應該理解這些強大的概念以及如何在應用程式設計中利用它們。
本書將幫助您理解物件導向程式設計和協定導向程式設計之間的差異。它將展示如何使用實際案例來進行協定導向程式設計。您將獲得有關 Swift 中可用的各種類型的扎實知識,以及值類型和引用類型之間的差異。您將學習如何使用協定導向程式設計技術來開發非常靈活且易於維護的代碼。
在本書結束時,您將對協定導向程式設計有透徹的理解,並知道如何利用它來構建強大且實用的應用程式。
**您將學到的內容**
- 理解物件導向程式設計和協定導向程式設計之間的差異
- 探索 Swift 提供的不同類型以及應避免的陷阱
- 深入了解泛型和泛型程式設計
- 學習如何在自定義類型中實現 Copy-On-Write
- 以協定導向的方式實現幾種設計模式
- 在設計應用程式時,優先考慮協定,然後考慮實現類型
**關於作者**
**Jon Hoffman** 在資訊技術領域擁有超過 25 年的經驗。在這些年中,Jon 曾在系統管理、網路管理、網路安全、應用程式開發和架構等領域工作。目前,Jon 擔任 Syn-Tech Systems 的高級軟體工程師。
自 2008 年以來,Jon 在 iOS 平台上進行了廣泛的開發。這包括他在 App Store 發布的幾個應用程式、為第三方編寫的應用程式以及眾多企業應用程式。他還為 Android 和 Windows 平台開發了行動應用程式。Jon 真正的驅動力來自於資訊技術領域所提供的挑戰,對他來說,克服挑戰是最令人振奮的事情。
Jon 的其他興趣包括與家人共度時光、機器人專案和 3D 列印。Jon 也非常喜歡跆拳道,他和他的長女 Kailey 在 2014 年初一起獲得黑帶,妻子 Kim 在 2014 年 12 月獲得黑帶,而他的幼女 Kara 目前正在努力獲得黑帶。
**目錄**
1. 從協定開始
2. 我們的類型選擇
3. 擴展
4. 泛型
5. 物件導向程式設計
6. 協定導向程式設計
7. 在 Swift 中採用設計模式
8. 案例研究