Protocol-Oriented Programming with Swift(Paperback)
Jon Hoffman
- 出版商: Packt Publishing
- 出版日期: 2016-02-26
- 定價: $1,330
- 售價: 9.0 折 $1,197
- 語言: 英文
- 頁數: 212
- 裝訂: Paperback
- ISBN: 1785882945
- ISBN-13: 9781785882944
-
相關分類:
Apple Developer
立即出貨 (庫存=1)
買這商品的人也買了...
-
$880$616 -
$1,715Introduction to Algorithms, 3/e (Hardcover)
-
$1,980$1,881 -
$888Mastering Swift 4 Fourth Edition
-
$650$514
相關主題
商品描述
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的其他興趣包括觀看棒球比賽(去紅襪隊)和籃球比賽(去塞爾蒂克隊)。Jon還非常喜歡跆拳道,他和他的大女兒Kailey在2014年初一起獲得了黑帶。他的妻子Kim在2014年12月獲得了黑帶,他的小女兒目前正在努力獲得黑帶。
目錄
- 面向對象編程和協議導向編程
- 我們的類型選擇
- 捕獲我們的錯誤
- 關於協議的一切
- 讓我們擴展一些類型
- 在Swift中採用設計模式
- 案例研究