Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Generic Swift: Simplifying Protocols and Generics

ChariotSolutions via YouTube

Overview

Explore the intricacies of generic Swift programming in this 58-minute conference talk by Rob Napier at Philly ETE 2019. Delve into common pitfalls and misconceptions surrounding protocol-oriented programming, associated types, type-erasers, and more. Learn effective strategies for working with Swift's type system, avoiding compiler fights, and choosing the right tools for various programming challenges. Gain insights on creating reusable view controllers, flexible networking, data-driven UI, and effective unit testing. Suitable for developers familiar with Swift syntax for generics, protocols, extensions, enums, and first-class functions, this talk also introduces more advanced topics like protocols with associated types and enums with associated data. Discover how to write elegant, efficient Swift code that leverages the language's strengths without unnecessary complexity.

Syllabus

Introduction
Generics
Mocking
Transport existential
Generalized existential
Type eraser
Concrete requests
equatable
protocol vs interface
future of Swift

Taught by

ChariotSolutions

Reviews

Start your review of Generic Swift: Simplifying Protocols and Generics

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.