EPUB PDF JPG
本書有DRM加密保護,需使用HyRead閱讀軟體開啟
  • Protocol-Oriented programming with Swift:build fast and powerful applications by exploiting the power of protocol-oriented programming in Swift
  • 點閱:8
  • 作者: Jon Hoffman
  • 出版社:Packt Publishing Ltd.
  • 出版年:2016
  • ISBN:9781785882944; 9781785886348
  • 格式:EPUB 流式,PDF,JPG

This book is about protocol-oriented programming. When Apple announced Swift 2 at the World Wide Developers Conference (WWDC) in 2015, they also declared that Swift was the world's first protocol-oriented programming language. By its name, we may assume that protocol-oriented programming is all about the protocol; however,that would be wrong assumption. Protocol-oriented programming is about so much more than just the protocol; it is actually a new way of not only writing applications, but thinking about programming as well.

One of the biggest misconceptions about protocol-oriented programming is that it is just another name for object-oriented programming. Chapter 1, Object-Oriented and Protocol-Oriented Programming, immediately takes on this myth by comparing protocol-oriented programming to object-oriented programming to see what is similar and what the differences are. We will also discuss the advantages and disadvantages of both programming paradigms.

From Chapter 2, Our Type Choices, to Chapter 5, Let's Extend Some Types, we will take an in-depth look at each of the components of the protocol-oriented programming paradigm. These chapters are designed to give the reader a solid understanding of the different components of protocol-oriented programming, so users will understand how they can use these components in their applications.

The last two chapters are written to help the reader understand how they can design their application in a protocol-oriented programming way. Chapter 6, Adopting Design Patterns in Swift, looks at how we would implement several design patterns in a protocol-oriented way and Chapter 7, Case Studies, looks at three real-world case studies to reinforce everything previously discussed in the book.

Jon Hoffman has over 20 years of experience in the field of information tec hnology.

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.

  • 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
    • 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
    • When to use error handling
    • Summary
  • Chapter 4 : All about the Protocol
    • Protocol syntax
    • Protocol composition
    • Using protocols as a type
    • Polymorphism with protocols
    • Type casting with protocols
    • Associated types with protocols
    • Delegation
    • Designing and developing with protocols
    • Summary
  • Chapter 5 : Let's Extend Some Types
    • Defining an extension
    • Protocol extensions
    • Text validation
    • Summary
  • Chapter 6 : Adopting Design Patterns in Swift
    • What are design patterns ?
    • Creational patterns
    • Structural design patterns
    • Behavioral design patterns
    • Summary
  • Chapter 7 : Case Studies
    • Logging service
    • Data access layer with SQLite.swift
    • Calculator application
    • Summary
  • Index
紙本書 NT$ 1280
單本電子書
NT$ 1024

還沒安裝 HyRead 3 嗎?馬上免費安裝~
QR Code