Cargando…

Swift 4 Protocol-Oriented Programming - Third Edition.

Build fast and powerful applications by harnessing the power of protocol-oriented programming in Swift 4 About This Book Leverage the power of protocol-oriented programming in your applications and learn from real-world use cases Create a flexible code base with protocols and protocol extensions Lev...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Hoffman, Jon
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2017.
Temas:
Acceso en línea:Texto completo

MARC

LEADER 00000cam a2200000Mu 4500
001 EBSCO_on1006423108
003 OCoLC
005 20231017213018.0
006 m o d
007 cr |n|---|||||
008 171014s2017 enk o 000 0 eng d
040 |a EBLCP  |b eng  |e pn  |c EBLCP  |d YDX  |d IDEBK  |d CHVBK  |d OCLCO  |d IDB  |d COO  |d OCLCQ  |d OCLCF  |d MOQ  |d OCLCQ  |d LVT  |d OCLCQ  |d N$T  |d VT2  |d OCLCQ  |d OCLCO  |d K6U  |d OCLCQ  |d OCLCO 
019 |a 1006302051  |a 1129365150 
020 |a 1788473825 
020 |a 9781788473828  |q (electronic bk.) 
020 |z 9781788470032 
024 8 |a 9781788470032 
029 1 |a AU@  |b 000066234018 
029 1 |a CHNEW  |b 000975250 
029 1 |a CHVBK  |b 503268712 
035 |a (OCoLC)1006423108  |z (OCoLC)1006302051  |z (OCoLC)1129365150 
050 4 |a T55.4-60.8 
082 0 4 |a 005.3  |2 23 
049 |a UAMI 
100 1 |a Hoffman, Jon. 
245 1 0 |a Swift 4 Protocol-Oriented Programming - Third Edition. 
260 |a Birmingham :  |b Packt Publishing,  |c 2017. 
300 |a 1 online resource (206 pages) 
336 |a text  |b txt  |2 rdacontent 
337 |a computer  |b c  |2 rdamedia 
338 |a online resource  |b cr  |2 rdacarrier 
347 |a text file. 
588 0 |a Print version record. 
505 0 |a Cover -- Copyright -- Credits -- About the Author -- About the Reviewer -- www.PacktPub.com -- Customer Feedback -- Table of Contents -- Preface -- Chapter 1: Starting with the Protocol -- Protocol syntax -- Defining a protocol -- Property requirements -- Method requirements -- Optional requirements -- Protocol inheritance -- Protocol composition -- Using protocols as a type -- Polymorphism with protocols -- Type casting with protocols -- Associated types with protocols -- Delegation -- Designing with protocols 
505 8 |a Protocols in the Swift standard librarySummary -- Chapter 2: Our Type Choices -- Classes -- Structures -- Access controls -- Enumerations -- Tuples -- Protocols -- Value and reference types -- Recursive data types for reference types only -- Inheritance for reference types only -- Dynamic dispatch -- Swift's built-in types -- Copy-on-write -- Summary -- Chapter 3: Extensions -- Defining an extension -- Protocol extensions -- Text validation -- Extensions with the Swift standard library -- Conforming to the Equatable protocol -- Summary 
505 8 |a Chapter 4: GenericsGeneric functions -- Type constraints with Generics -- Generic types -- Associated types -- Generic subscripts -- Copy-on-write -- Generics in a protocol-oriented design -- Generics in the Swift standard library -- Summary -- Chapter 5: Object-Oriented Programming -- What is object-oriented programming? -- Requirements for the sample code -- Swift as an object-oriented programming language -- Issues with the object-oriented design -- Summary -- Chapter 6: Protocol-Oriented Programming -- Requirements for the sample code 
505 8 |a Swift as a protocol-oriented programming languageSummarizing protocol-oriented programming and object-oriented programming -- Differences between object-oriented programming and protocol-oriented programming -- Protocol and protocol extensions compared with superclasses -- Implementing vehicle types -- Using value and reference types -- The winner is ... -- Summary -- Chapter 7: Adopting Design Patterns in Swift -- What are design patterns? -- Creational patterns -- The singleton design pattern -- Understanding the problem -- Understanding the solution 
505 8 |a Implementing the singleton patternThe builder design pattern -- Understanding the problem -- Understanding the solution -- Implementing the builder pattern -- The factory method pattern -- Understanding the problem -- Understanding the solution -- Implementing the factory method pattern -- Structural design patterns -- The bridge pattern -- Understanding the problem -- Understanding the solution -- Implementing the bridge pattern -- The facade pattern -- Understanding the problem -- Understanding the solution -- Implementing the facade pattern 
500 |a ""The proxy design pattern"" 
520 |a Build fast and powerful applications by harnessing the power of protocol-oriented programming in Swift 4 About This Book Leverage the power of protocol-oriented programming in your applications and learn from real-world use cases Create a flexible code base with protocols and protocol extensions Leverage the power of generics in Swift 4 to create very flexible frameworks Who This Book Is For This book is for Swift developers who want to learn and implement protocol-oriented programming in their real-world applications. What You Will Learn Understand the differences between object-oriented programming and protocol-oriented programming Explore the different types that Swift offers and what pitfalls to avoid Delve into generics and generic programming Learn how to implement Copy-On-Write within your custom types Implement several design patterns in a protocol-oriented way Design applications by prioritizing the protocol first and the implementation types second In Detail Swift has become the number one language used in iOS and macOS development. The Swift standard library is developed using protocol-oriented programming techniques, generics, and first-class value semantics; therefore, every Swift developer should understand these powerful concepts and how to take advantage of them in their application design. This book will help you understand the differences between object-oriented programming and protocol-oriented programming. It will demonstrate how to work with protocol-oriented programming using real-world use cases. You will gain a solid knowledge of the various types that can be used in Swift and the differences between value and reference types. You will be taught how protocol-oriented programming techniques can be used to develop very flexible and easy-to-maintain code. By the end of the book, you will have a thorough understanding of protocol-oriented programming and how to utilize it to build powerful and practical applications. Style and approach This book is written for developers who learn best by working with code, so every concept discussed in this book is reinforced with real code examples. Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file. 
542 |f Copyright © 2017 Packt Publishing. 
590 |a eBooks on EBSCOhost  |b EBSCO eBook Subscription Academic Collection - Worldwide 
650 0 |a Swift. 
650 0 |a Application software  |x Development. 
650 6 |a Logiciels d'application  |x Développement. 
650 7 |a Application software  |x Development  |2 fast 
776 0 8 |i Print version:  |a Hoffman, Jon.  |t Swift 4 Protocol-Oriented Programming - Third Edition.  |d Birmingham : Packt Publishing, ©2017 
856 4 0 |u https://ebsco.uam.elogim.com/login.aspx?direct=true&scope=site&db=nlebk&AN=1613210  |z Texto completo 
938 |a EBL - Ebook Library  |b EBLB  |n EBL5098651 
938 |a EBSCOhost  |b EBSC  |n 1613210 
938 |a ProQuest MyiLibrary Digital eBook Collection  |b IDEB  |n cis39109494 
938 |a YBP Library Services  |b YANK  |n 14880333 
994 |a 92  |b IZTAP