Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Duck Typing
Search
Javier Cervantes
May 30, 2014
Programming
0
94
Duck Typing
Based on chapter #5 of POODR.
Given at rubygdl.org.
Javier Cervantes
May 30, 2014
Tweet
Share
More Decks by Javier Cervantes
See All by Javier Cervantes
Continuous Delivery para todos @ SGNext
solojavier
0
110
Gobot.io y el internet de las cosas
solojavier
0
110
Deliberate Practice - Lightning Talk
solojavier
0
150
Golang - WePow Talks
solojavier
0
62
Server Provisioning and Configuration
solojavier
0
67
Evolución Robótica
solojavier
0
50
Re-evolución robótica
solojavier
0
87
Artoo : Ruby on robots
solojavier
0
110
Las pruebas primero
solojavier
0
62
Other Decks in Programming
See All in Programming
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
140
tparseでgo testの出力を見やすくする
utgwkk
1
190
関数実行の裏側では何が起きているのか?
minop1205
1
690
チームをチームにするEM
hitode909
0
310
Cap'n Webについて
yusukebe
0
130
まだ間に合う!Claude Code元年をふりかえる
nogu66
5
770
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
2.1k
手軽に積ん読を増やすには?/読みたい本と付き合うには?
o0h
PRO
1
170
宅宅自以為的浪漫:跟 AI 一起為自己辦的研討會寫一個售票系統
eddie
0
500
Building AI Agents with TypeScript #TSKaigiHokuriku
izumin5210
6
1.3k
CSC509 Lecture 14
javiergs
PRO
0
220
愛される翻訳の秘訣
kishikawakatsumi
1
320
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
186
22k
[SF Ruby Conf 2025] Rails X
palkan
0
500
Building a Scalable Design System with Sketch
lauravandoore
463
34k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
1
96
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
720
How to Ace a Technical Interview
jacobian
280
24k
GitHub's CSS Performance
jonrohan
1032
470k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.6k
For a Future-Friendly Web
brad_frost
180
10k
Faster Mobile Websites
deanohume
310
31k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
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