Swift Protocol-Oriented Programming -- Fourth Edition

Hoffman, Jon

  • 出版商: Packt Publishing
  • 出版日期: 2019-06-30
  • 售價: $1,040
  • 貴賓價: 9.5$988
  • 語言: 英文
  • 頁數: 224
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1789349028
  • ISBN-13: 9781789349023
  • 相關分類: Apple Developer
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

More Information
Learn
  • Learn the differences between object-oriented programming and protocol-oriented programming
  • Understand why value types should be prioritized over reference types
  • Delve into protocols, protocol inheritance, protocol composition, and protocol extensions
  • Learn how to implement COW (Copy-On-Write) within your custom value types
  • Understand how memory management works in Swift and how to avoid common pitfalls
  • Design applications by starting with the protocol rather than the implementation
About

Protocol-oriented programming is an incredibly powerful concept at the heart of Swift's design. Swift's standard library was developed using POP techniques, generics, and first-class value semantics; therefore, it is important for every Swift developer to understand these core concepts and take advantage of them. The fourth edition of this book is improved and updated to the latest version of the Swift programming language.

This book will help you understand what protocol-oriented programming is all about and how it is different from other programming paradigms such as object-oriented programming. This book covers topics such as generics, Copy-On-Write, extensions, and of course protocols. It also demonstrates how to use protocol-oriented programming techniques via real-world use cases.

By the end of this book, you will know how to use protocol-oriented programming techniques to build powerful and practical applications.

 

Features
  • Leverage the power of Protocol-Oriented Programming in your applications
  • Leverage generics to create very flexible frameworks
  • Learn how to implement common design patterns in a protocol-oriented way

商品描述(中文翻譯)

更多資訊


學習


  • 了解物件導向程式設計和協定導向程式設計之間的差異

  • 了解為什麼優先考慮值型別而非參考型別

  • 深入研究協定、協定繼承、協定組合和協定擴展

  • 學習如何在自訂值型別中實現 COW(Copy-On-Write)

  • 了解 Swift 中的記憶體管理方式以及如何避免常見問題

  • 從協定而非實作開始設計應用程式





關於

協定導向程式設計是 Swift 設計核心的一個非常強大的概念。Swift 的標準函式庫是使用 POP 技術、泛型和一級值語義來開發的,因此,每個 Swift 開發者都需要了解這些核心概念並善加利用。本書的第四版已經改進並更新到最新版本的 Swift 程式語言。

本書將幫助您了解協定導向程式設計的核心概念以及它與其他程式設計範式(如物件導向程式設計)的不同之處。本書涵蓋了泛型、Copy-On-Write、擴展以及當然還有協定。它還通過實際應用案例演示了如何使用協定導向程式設計技術。

通過閱讀本書,您將學會如何使用協定導向程式設計技術來構建強大而實用的應用程式。

 





特點


  • 在應用程式中充分利用協定導向程式設計的優勢

  • 使用泛型創建非常靈活的框架

  • 學習如何以協定導向的方式實現常見的設計模式