Oreilly - Getting Started with Protocols in Swift
by Hamish Knight | Released June 2017 | ISBN: 9781788396967
Effective, flexible and maintainable code using the power of Swift protocolsAbout This VideoLearn what protocols are and the advantages of using themLearn about some of the great advanced features that protocols offerLearn about generics in Swift, and how they can be used with protocols in order to write powerful and flexible generic codeIn DetailUsing right protocols can transform the way you write Swift code. Building on top of familiar object oriented principles, they enable you to define blueprints for common functionality that any class, structure, or enumeration can adopt.Protocols fix many of the most painful problems associated with OOP. This course introduces protocols and explains how to use them. With useful examples and practical, step-by-step instructions, you'll create protocols and use them in your code.By the end of the course you'll be ready to use protocols in production to improve the effectiveness of your code. Show and hide more
- Chapter 1 : Get to Know Your Protocols
- The Course Overview 00:01:37
- Exploring Protocols 00:03:28
- Defining and Conforming to Protocols 00:07:45
- Extending Protocols 00:06:34
- Why Use Protocols? 00:07:13
- Using Protocols as Types 00:05:24
- Chapter 2 : Advanced Protocol Requirements
- Mutating Requirements and Class-bound Protocols 00:14:14
- Initialiser Requirements 00:06:02
- Optional Requirements 00:04:08
- Stored Properties in Protocol Extensions 00:06:10
- Chapter 3 : Advanced Protocols
- Associated Type Requirements 00:08:16
- Self Requirements 00:07:08
- Operator Requirements 00:04:39
- Where Clauses in Extensions 00:05:32
- Chapter 4 : Generic Programming with Protocols
- Introduction to generics 00:11:35
- Using Protocols with Generics 00:09:49
- Using Protocols to Refine Extensions on Generic Types 00:09:30
- Equatable, Comparable, and Hashable 00:13:25
Show and hide more
TO MAC USERS: If RAR password doesn't work, use this archive program:
RAR Expander 0.8.5 Beta 4 and extract password protected files without error.
TO WIN USERS: If RAR password doesn't work, use this archive program:
Latest Winrar and extract password protected files without error.