자료유형 | E-Book |
---|---|
개인저자 | Hoffman, Jon. |
서명/저자사항 | Swift 4 Protocol-Oriented Programming - Third Edition.[electronic resource] |
발행사항 | Birmingham : Packt Publishing, 2017. |
형태사항 | 1 online resource (206 pages) |
소장본 주기 | Added to collection customer.56279.3 |
ISBN | 1788473825 9781788473828 |
기타표준부호 | 9781788470032 |
일반주기 |
""The proxy design pattern""
|
내용주기 | 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 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 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 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 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 |
요약 | 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. |
일반주제명 | Swift. Application software -- Development. Application software -- Development. |
언어 | 영어 |
기타형태 저록 | Print version:Hoffman, Jon.Swift 4 Protocol-Oriented Programming - Third Edition.Birmingham : Packt Publishing, 짤2017 |
대출바로가기 | http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&db=nlabk&AN=1613210 |
인쇄
No. | 등록번호 | 청구기호 | 소장처 | 도서상태 | 반납예정일 | 예약 | 서비스 | 매체정보 |
---|---|---|---|---|---|---|---|---|
1 | WE00016025 | 005.3 | 가야대학교/전자책서버(컴퓨터서버)/ | 대출가능 |