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
Duck Typing
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Javier Cervantes
May 30, 2014
Programming
110
0
Share
Duck Typing
Based on chapter #5 of POODR.
Given at rubygdl.org.
Javier Cervantes
May 30, 2014
More Decks by Javier Cervantes
See All by Javier Cervantes
Continuous Delivery para todos @ SGNext
solojavier
0
130
Gobot.io y el internet de las cosas
solojavier
0
120
Deliberate Practice - Lightning Talk
solojavier
0
160
Golang - WePow Talks
solojavier
0
69
Server Provisioning and Configuration
solojavier
0
71
Evolución Robótica
solojavier
0
56
Re-evolución robótica
solojavier
0
100
Artoo : Ruby on robots
solojavier
0
120
Las pruebas primero
solojavier
0
76
Other Decks in Programming
See All in Programming
レガシーPHP転生 〜父がドメインエキスパートだったのでDDD+Claude Codeでチート開発します〜
panda_program
0
710
瑠璃の宝石に学ぶ技術の声の聴き方 / 【劇場版】アニメから得た学びを発表会2026 #エンジニアニメ
mazrean
0
240
PHP 7.4でもOpenTelemetryゼロコード計装がしたい! / PHPerKaigi 2026
arthur1
1
570
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
190
PDI: Como Alavancar Sua Carreira e Seu Negócio
marcelgsantos
0
120
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
0
120
ハーネスエンジニアリングにどう向き合うか 〜ルールファイルを超えて開発プロセスを設計する〜 / How to approach harness engineering
rkaga
9
3.5k
VueエンジニアがReactを触って感じた_設計の違い
koukimiura
0
170
PHPで TLSのプロトコルを実装してみるをもう一度しゃべりたい
higaki_program
0
190
Offline should be the norm: building local-first apps with CRDTs & Kotlin Multiplatform
renaudmathieu
0
200
AI-DLC Deep Dive
yuukiyo
7
1.3k
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
140
Featured
See All Featured
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
770
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
ラッコキーワード サービス紹介資料
rakko
1
3M
Into the Great Unknown - MozCon
thekraken
40
2.3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.3k
Odyssey Design
rkendrick25
PRO
2
570
Java REST API Framework Comparison - PWX 2021
mraible
34
9.3k
Crafting Experiences
bethany
1
110
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Docker and Python
trallard
47
3.8k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
Transcript
Duck Typing @ruby_gdl << @solojavier # Based on chapter 5
of book poodr.com
What is Duck Typing "If an object quacks like a
duck and walks like a duck, then it's a duck" Technique that help us reduce cost of change Public interfaces not tied to any specific class Duck typed objects are chameleons that are defined more by their behaviour than by their class
Learning by example
None
None
requirements.change!
None
None
code_design.add(:duck_typing)
None
None
None
Summary Duck typing detaches public interfaces from classes It creates
virtual types defined by behaviour Depending on this abstractions increases flexibility This will make your application easier to change