Protocol-Oriented Programming with Swift

Protocol-Oriented Programming with Swift

by Hoffman, Jon

Type Book
Rate 0.0 /5

Build fast and powerful applications by exploiting the power of protocol-oriented programming in SwiftAbout This Book 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. Who This Book Is ForThis book is for Swift developers who want to learn and i…

Read More ↓

Title Statements

  • Full title :Protocol-Oriented Programming with Swift.

Summary

Build fast and powerful applications by exploiting the power of protocol-oriented programming in SwiftAbout This Book 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. Who This Book Is ForThis book is for Swift developers who want to learn and implement protocol oriented programming in their 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 programmingIn DetailAt 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. Style and approachIn its latest release of Swift, Apple has introduced Protocol Extensions as a new feature at the heart of Swifts design making Swift 2 a protocol-oriented language. Protocol oriented programming being a less explored OOP paradigm, there is little guidance on hot to take advantage of protocol extensions in real-world applications. In addition to offering an in-depth coverage of protocol oriented programming and its concepts, this book also explains how a developer can leverage these features to build powerful, real-world applications.

Read More ↓

Edition Statements

  • Publication Date:Feb. 2016.

Publication Statements

The Physical Object

  • Description:1 online resource

Edition Identifiers

  • ISBN:9781785882944, 1785882945, 9781785886348, 1785886347
  • oclc:ocn951674708
  • LC Classification:QA76.73.S95
  • Dewey Decimal:005.117

Table of Contents

Cover -- Copyright -- Credits -- About the Author -- About the Reviewer -- www.PacktPub.com -- Table of Contents -- Preface -- Chapter 1: Object-Oriented and Protocol-Oriented Programming -- Swift as an object-oriented programming language -- Swift as a protocol-oriented programming language -- Summarizing protocol-oriented programming and object-oriented programming -- Object-oriented programming versus protocol-oriented programming -- Protocol and protocol extensions versus superclasses -- Implementing drink types -- Value types vs reference types -- The winner is ... -- Summary -- Chapter 2: Our Type Choices -- The class -- The structure -- The enumerations -- The tuple -- Protocols -- Value versus class types -- Recursive data types (reference types only) -- Inheritance (reference types only) -- Swift built-in data types and data structures -- Summary -- Chapter 3: Catching Our Errors -- Using the guard statement -- Error handling -- Error handling with return values -- Error handling with NSError -- Error handling with Swift 2 -- Representing errors -- Throwing errors -- Catching errors -- When to use error handling -- Summary -- Chapter 4: All about the Protocol -- Protocol …

Read More ↓

Subjects

Writers

Rate & Review

0.0/5
(0 people Voted)

No reviews yet. Be the first to rate this work.

Files & Downloads

  • Protocol Oriented Programming with Swift -- (.pdf)

    PDF · 1.3 MB · updated
  • Protocol-oriented programming with Swift build fa…

    EPUB · 938.3 KB · updated