Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Duck Typing
Search
Javier Cervantes
May 30, 2014
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
160
Gobot.io y el internet de las cosas
solojavier
0
130
Deliberate Practice - Lightning Talk
solojavier
0
180
Golang - WePow Talks
solojavier
0
80
Server Provisioning and Configuration
solojavier
0
77
Evolución Robótica
solojavier
0
80
Re-evolución robótica
solojavier
0
130
Artoo : Ruby on robots
solojavier
0
160
Las pruebas primero
solojavier
0
100
Other Decks in Programming
See All in Programming
ジョジョの世界をXRで再現する
mofurune
0
180
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
610
Kotlinize Is Not Just Converting to Kotlin
chigichan24
1
180
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
110
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
450
golang-bob.pdf
iwatsukayura
0
130
パスワード再設定メールのURLについて知っておこう
uyuki234
0
170
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
150
オーケストレーション記述言語 Katari
yukikurage
0
180
contenteditable と日本語入力に向き合う
colorful12
0
210
AIに “答え“を書かせるのを やめてみた
___akari11
0
130
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
830
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
640
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
590
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
750
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
580
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
460
Leo the Paperboy
mayatellez
10
2.4k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
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