Swift 3 Protocol-Oriented Programming - Second Edition
Jon Hoffman
- 出版商: Packt Publishing
- 出版日期: 2016-11-30
- 售價: $1,680
- 貴賓價: 9.5 折 $1,596
- 語言: 英文
- 頁數: 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
- Object-Oriented and Protocol-Oriented Programming
- Our Type Choices
- Catching Our Errors
- All About the Protocol
- Lets Extend Some Types
- Working with Generics
- Adopting Design Patterns in Swift
- 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 的其他興趣包括觀看棒球(Go Sox)和籃球(Go Celtics)。Jon 非常喜歡跆拳道,他和他的大女兒 Kailey 在 2014 年初一起獲得了黑帶,他的妻子 Kim 在 2014 年 12 月獲得了黑帶,他的小女兒目前正在努力向黑帶邁進。
目錄
- 面向對象編程和協議導向編程
- 我們的類型選擇
- 捕獲錯誤
- 關於協議的一切
- 擴展一些類型
- 使用泛型
- 在 Swift 中採用設計模式
- 案例研究