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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
57
Re-evolución robótica
solojavier
0
100
Artoo : Ruby on robots
solojavier
0
120
Las pruebas primero
solojavier
0
77
Other Decks in Programming
See All in Programming
HTML-Aware ERB: The Path to Reactive Rendering @ RubyKaigi 2026, Hakodate, Japan
marcoroth
0
600
Import assertionsが消えた日~ECMAScriptの仕様はどう決まり、なぜ覆るのか~
bicstone
2
170
AIを導入する前にやるべきこと
negima
2
320
Agentic Elixir
whatyouhide
0
430
Spec-Driven Development with AI Agents (Workshop, May 2026)
antonarhipov
2
260
CDK Deployのための ”反響定位”
watany
5
920
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
200
クラウドネイティブなエンジニアに向ける Raycastの魅力と実際の活用事例
nealle
2
230
実践CRDT
tamadeveloper
0
610
Road to RubyKaigi: Play Hard(ware)
makicamel
1
520
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
4
430
Claude Code × Gemini × Ebitengine ゲーム制作素人WebエンジニアがGoでゲームを作った話
webzawa
0
210
Featured
See All Featured
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.2k
The SEO Collaboration Effect
kristinabergwall1
1
440
How to build a perfect <img>
jonoalderson
1
5.5k
Between Models and Reality
mayunak
3
280
The SEO identity crisis: Don't let AI make you average
varn
0
460
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
130
For a Future-Friendly Web
brad_frost
183
10k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
190
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
280
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
530
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
510
We Are The Robots
honzajavorek
0
220
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