Protocol-Oriented Programming with Swift(Paperback)
暫譯: 使用 Swift 的協議導向程式設計(平裝本)
Jon Hoffman
- 出版商: Packt Publishing
- 出版日期: 2016-02-26
- 定價: $1,330
- 售價: 9.0 折 $1,197
- 語言: 英文
- 頁數: 212
- 裝訂: Paperback
- ISBN: 1785882945
- ISBN-13: 9781785882944
-
相關分類:
Apple Developer
立即出貨 (庫存=1)
買這商品的人也買了...
-
$880$695 -
$1,715Introduction to Algorithms, 3/e (Hardcover)
-
$2,010$1,910 -
$888Mastering Swift 4 Fourth Edition
-
$650$514 -
$650$507 -
$680$537
商品描述
Key Features
- The only book that shows how to harness the power of Protocol-Oriented Programming in Swift to build real-world applications,
- Get familiar with the protocol focused approach of application development,
- Increase the overall productivity and performance of applications with Protocol Oriented Programming.
Book Description
At the heart of Swift's design is an incredibly powerful idea: protocol-oriented programming. Its many benefits include better code maintainability, increased developer productivity and superior application performance. The book will teach the reader how to apply the ideas behind the protocol oriented programing paradigm to improve the code they write.
This book will introduce the readers to the world of protocol-oriented programming in Swift and will demonstrate the ideas behind this new programming paradigm with real world examples. In addition to learning the concepts of Protocol Oriented programming, it also shows the reader how to reduce the complexity of their codebase using protocol extensions. Beginning with how to create simple protocols, readers will learn how to extend protocols and also to assign behaviors to them.
By the end of this book readers will be able to harness the power of protocol-oriented programming to build real world applications.
What you will learn
- The difference between Object-Oriented programming and Protocol-Oriented programming
- The difference between reference and value types and when to use each
- How we can leverage tuples to reduce the complexity of our code
- What are protocols and how to use them
- How to implement protocol extensions to create a very flexible code base
- How to implement several design patterns in a Protocol-Oriented approach
- How to solve real world design issue with protocol oriented programming
About the Author
Jon Hoffman has over 20 years of experience in the field of information technology. Over these 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 been developing extensively for the iOS platform since 2008. This includes several apps that he has published in the app store―apps that he wrote for third parties and numerous enterprise applications.
Packt Publishing published Jon's first book, iOS and OS X Network Programming, in January 2014.
What really drives Jon is the challenges in the Information Technology field and there is nothing more exhilarating to him than overcoming a challenge. 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
- Let's Extend Some Types
- Adopting Design Patterns in Swift
- Case Studies
商品描述(中文翻譯)
關鍵特點
- 本書是唯一一本展示如何利用 Swift 中的協議導向程式設計來構建實際應用程式的書籍。
- 熟悉以協議為中心的應用程式開發方法。
- 通過協議導向程式設計提高應用程式的整體生產力和性能。
書籍描述
Swift 設計的核心是一個極其強大的概念:協議導向程式設計。其許多優點包括更好的代碼可維護性、提高開發者生產力和卓越的應用程式性能。本書將教導讀者如何應用協議導向程式設計範式背後的理念,以改善他們所編寫的代碼。
本書將向讀者介紹 Swift 中的協議導向程式設計世界,並通過實際範例展示這一新程式設計範式背後的理念。除了學習協議導向程式設計的概念外,還將向讀者展示如何使用協議擴展來減少代碼庫的複雜性。從如何創建簡單的協議開始,讀者將學習如何擴展協議並為其分配行為。
到本書結束時,讀者將能夠利用協議導向程式設計的力量來構建實際應用程式。
你將學到的內容
- 物件導向程式設計與協議導向程式設計之間的區別
- 參考類型和值類型之間的區別以及何時使用每一種
- 如何利用元組來減少代碼的複雜性
- 什麼是協議以及如何使用它們
- 如何實現協議擴展以創建非常靈活的代碼庫
- 如何在協議導向的方法中實現多種設計模式
- 如何使用協議導向程式設計解決實際的設計問題
關於作者
**Jon Hoffman** 在資訊技術領域擁有超過 20 年的經驗。在這 20 年中,Jon 曾在系統管理、網路管理、網路安全、應用程式開發和架構等領域工作。目前,Jon 擔任 Syn-Tech Systems 的高級軟體工程師。
自 2008 年以來,Jon 一直在 iOS 平台上進行廣泛的開發,包括他在應用商店發布的幾個應用程式——這些應用程式是他為第三方編寫的,以及許多企業應用程式。
Packt Publishing 於 2014 年 1 月出版了 Jon 的第一本書《iOS 和 OS X 網路程式設計》。
驅動 Jon 的真正動力是資訊技術領域的挑戰,對他來說,克服挑戰是最令人振奮的事情。Jon 的其他興趣包括觀看棒球(加油 Sox)和籃球(加油 Celtics)。Jon 也非常喜歡跆拳道,他和他的長女 Kailey 在 2014 年初一起獲得了黑帶。Kim(他的妻子)於 2014 年 12 月獲得黑帶,而他的幼女目前正在努力獲得黑帶。
目錄
1. 物件導向與協議導向程式設計
2. 我們的類型選擇
3. 捕捉錯誤
4. 協議的所有內容
5. 讓我們擴展一些類型
6. 在 Swift 中採用設計模式
7. 案例研究