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
Programação Orientada a Protocolos
Search
Paulo Gama
March 27, 2018
Technology
0
100
Programação Orientada a Protocolos
Paulo Gama
March 27, 2018
Tweet
Share
More Decks by Paulo Gama
See All by Paulo Gama
SwiftUI
paulogama
0
19
Continuous Integration and Continuous Delivery for Mobile
paulogama
0
62
Ferramentas auxiliares para desenvolvimento mobile
paulogama
0
84
Introdução ao Mundo Mobile
paulogama
0
62
Persistência de Dados: Análise e comparação de ferramentas
paulogama
0
100
Other Decks in Technology
See All in Technology
AI時代の開発を加速する組織づくり - ブログでは書けなかったリアル
hiro8ma
1
310
コンパウンド組織のCRE #cre_meetup
layerx
PRO
1
270
会社を支える Pythonという言語戦略 ~なぜPythonを主要言語にしているのか?~
curekoshimizu
3
670
SQLAlchemy の select(User).where(User.id =="123") を理解してみる/sqlalchemy deep dive
3l4l5
3
350
SOTA競争から人間を超える画像認識へ
shinya7y
0
450
OSSで50の競合と戦うためにやったこと
yamadashy
3
980
もう外には出ない。より快適なフルリモート環境を目指して
mottyzzz
13
10k
IBC 2025 動画技術関連レポート / IBC 2025 Report
cyberagentdevelopers
PRO
2
170
20251027_findyさん_音声エージェントLT
almondo_event
2
430
「最速」で Gemini CLI を使いこなそう! 〜Cloud Shell/Cloud Run の活用〜 / The Fastest Way to Master the Gemini CLI — with Cloud Shell and Cloud Run
aoto
PRO
1
180
Kubernetes self-healing of your workload
hwchiu
0
530
Databricks AI/BI Genie の「値ディクショナリー」をAmazonの奥地(S3)まで見に行く
kameitomohiro
1
410
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.7k
Automating Front-end Workflow
addyosmani
1371
200k
For a Future-Friendly Web
brad_frost
180
10k
Done Done
chrislema
185
16k
Visualization
eitanlees
149
16k
Building Adaptive Systems
keathley
44
2.8k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Transcript
PROGRAMAÇÃO ORIENTADA A PROTOCOLOS
QUEM SOMOS NÓS?
LILIAN DIAS Pessoa Desenvolvedora Mobile na ThoughtWorks Belém - PA
PAULO GAMA Pessoa Desenvolvedora Mobile na ThoughtWorks Lavras (Capital do
Sul de Minas)
AGENDA Class x Struct O que é Qual a importância
Vantagens Desvantagens
CLASS X STRUCT
CLASS X STRUCT
O QUE É Paradigma de programação Programação baseada em protocolos
QUAL A IMPORTÂNCIA Qualidade de código Desacoplamento Manutenção Maior facilidade
em escritas de testes
VANTAGENS Classes, structs e enums Múltiplos protocolos Extensão Herança As
a type*
DESVANTAGENS Não é uma bala de prata Aumento de complexidade
Perguntas? OBRIGADA!
REFERÊNCIAS https://www.bobthedeveloper.io/blog/introduction-to-protocol-oriented- programming-in-swift https://www.raywenderlich.com/148448/introducing-protocol-oriented- programming https://developer.apple.com/library/content/documentation/Swift/Conceptual/ Swift_Programming_Language/Protocols.html http://chris.eidhof.nl/post/protocol-oriented-programming/ https://www.pluralsight.com/guides/swift/protocol-oriented-programming-in- swift