Generic Swift: It Isn’t Supposed to Hurt - Rob Napier

  Рет қаралды 7,088

ChariotSolutions

ChariotSolutions

Күн бұрын

They said Swift is “protocol oriented,” so you wrote protocols. But you wanted them to be generic, so you added associated types. But your collections broke, so you added type-erasers. But your “as”-casts broke, so you switched to Any. But then everything broke, so you read about Mirror. And the tears began. Why did it have to be so hard to make an array?
It doesn’t have to be so hard. But it’s very easy to use the wrong tools to solve the wrong problems. In this session I’ll help you reevaluate what it means to write generic Swift and how to choose the right tools for the job. Whether your goal is reusable view controllers, flexible networking, data-driven UI, effective unit testing, or just the joy of elegant data structures, you’ll learn how to work with Swift and not fight the compiler.
This talk assumes familiarity with Swift syntax for generics, protocols, extensions, enums, and first-class functions (such as completion handlers), as well as the basic differences between Swift structs and classes. More advanced topics, including protocols with associated types, enums with associated data, closures, and functions as return types, will be introduced and explained.
Philly ETE 2019 Playlist: • Philly ETE 2019
On the Chariot Solutions site: chariotsolutions.com/screencasts/

Пікірлер: 11
@mrbam8833
@mrbam8833 3 жыл бұрын
Perhaps the best Swift talks I've ever seen. Thank you Sir!
@cduhn
@cduhn 3 жыл бұрын
Amazing talk. Watching this, I think I attained a new personal record for epiphanies per minute. Thank you!
@Brrainz
@Brrainz 3 жыл бұрын
Much better than I thought! -> DOUBLE THUMBS UP
@elmomertens
@elmomertens 2 жыл бұрын
New existential unlock implementation and the introduction of "any" keyword will help a lot to alleviate the headaches around the problem 😭
@aly-bocarcisse613
@aly-bocarcisse613 2 жыл бұрын
I have a lot to think about, thanks !
@ssaai
@ssaai 4 жыл бұрын
Excellent 👏🏻👏🏻👏🏻👏🏻👏🏻👏🏻👏🏻👏🏻👏🏻👍🏻
@caballopalido
@caballopalido 3 жыл бұрын
what is this man's onlyfans?
@alxkub
@alxkub Жыл бұрын
Talks like this make me want to quit programming completely. I will never be able to understand this stuff.
@Lircking
@Lircking 2 ай бұрын
just learn haskell bro
@alex.kostenko
@alex.kostenko 6 күн бұрын
Do not be discouraged, it was not the best presentation. Look at different talks, i suggest you to watch Apple's videos especially "understanding swift performance".
Protocol Witnesses - Brandon Williams - App Builders 2019
41:43
Swiss Mobile Developers Association
Рет қаралды 10 М.
dotSwift 2016 - Rob Napier - Beyond Crusty: Real-World Protocols
17:05
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 7 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 49 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 10 МЛН
Your Brain 🧠 on Swift Concurrency - iOS Conf SG 2023
30:38
iOS Conf SG
Рет қаралды 8 М.
Alexis Gallagher - Protocols with Associated Types
56:07
Functional Swift
Рет қаралды 31 М.
Gentle Generics - John Sundell at Hacking with Swift Live 2019
29:27
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Andrew Kelley   Practical Data Oriented Design (DoD)
46:40
ChimiChanga
Рет қаралды 64 М.
Generics in Swift: Protocols with associated types
15:37
Swift and Tips
Рет қаралды 9 М.
Mojo🔥: a deep dive on ownership with Chris Lattner
48:50
Swift Generics Basics: Generic Functions Tutorial | Brian Advent
11:54
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 18 МЛН
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 12 МЛН