Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Deep dive into Protocols
Search
Ritesh Gupta
July 05, 2017
Programming
1
380
Deep dive into Protocols
Ritesh Gupta
July 05, 2017
Tweet
Share
More Decks by Ritesh Gupta
See All by Ritesh Gupta
Declarative Networking with Combine –– iOS Conf SG 2020
riteshhh
0
160
Combine! All the things
riteshhh
3
670
How to be a POP-Star
riteshhh
1
310
Thinking in Swift!
riteshhh
3
370
Other Decks in Programming
See All in Programming
PHPで学ぶプログラミングの教訓 / Lessons in Programming Learned through PHP
nrslib
4
390
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
110
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
140
php-conference-japan-2024
tasuku43
0
360
Cloudflare MCP ServerでClaude Desktop からWeb APIを構築
kutakutat
1
570
GitHubで育つ コラボレーション文化 : ニフティでのインナーソース挑戦事例 - 2024-12-16 GitHub Universe 2024 Recap in ZOZO
niftycorp
PRO
0
120
なまけものオバケたち -PHP 8.4 に入った新機能の紹介-
tanakahisateru
1
130
Effective Signals in Angular 19+: Rules and Helpers
manfredsteyer
PRO
0
130
Jakarta EE meets AI
ivargrimstad
0
280
週次リリースを実現するための グローバルアプリ開発
tera_ny
1
110
フロントエンドのディレクトリ構成どうしてる? Feature-Sliced Design 導入体験談
osakatechlab
8
4.1k
nekko cloudにおけるProxmox VE利用事例
irumaru
3
460
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Navigating Team Friction
lara
183
15k
Testing 201, or: Great Expectations
jmmastey
41
7.1k
The Cost Of JavaScript in 2023
addyosmani
46
7k
Making Projects Easy
brettharned
116
6k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
Scaling GitHub
holman
459
140k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
The Cult of Friendly URLs
andyhume
78
6.1k
A designer walks into a library…
pauljervisheath
205
24k
A better future with KSS
kneath
238
17k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Transcript
deep dive into Protocols (Swift Delhi Meetup, Chapter 3) ~
Ritesh Gupta
`Protocol-Oriented Programming in Swift` https://developer.apple.com/videos/play/wwdc2015/408/ WWDC - 2015
`Protocol and Value Oriented Programming in UIKit Apps` https://developer.apple.com/videos/play/wwdc2016/419/ WWDC
- 2016
None
None
None
playground demos..
protocol ->
protocol -> protocol extension ->
protocol -> protocol extension -> protocol constrained extension ->
self (refers to the `object`) vs Self (refers to the
`type` that conforms to a protocol)
https://krakendev.io/blog/generic-protocols-and-their- shortcomings http://austinzheng.com/2015/09/29/swift-generics-pt-2/ http://www.russbishop.net/swift-associated-types
protocol is not a silver bullet.. http://chris.eidhof.nl/post/protocol-oriented-programming/
None