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
0
100
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
120
Gobot.io y el internet de las cosas
solojavier
0
120
Deliberate Practice - Lightning Talk
solojavier
0
160
Golang - WePow Talks
solojavier
0
66
Server Provisioning and Configuration
solojavier
0
69
Evolución Robótica
solojavier
0
53
Re-evolución robótica
solojavier
0
94
Artoo : Ruby on robots
solojavier
0
120
Las pruebas primero
solojavier
0
70
Other Decks in Programming
See All in Programming
AHC061解説
shun_pi
0
330
あなたはユーザーではない #PdENight
kajitack
4
300
AIに任せる範囲を安全に広げるためにやっていること
fukucheee
0
110
Head of Engineeringが現場で回した生産性向上施策 2025→2026
gessy0129
0
210
Ruby x Terminal
a_matsuda
7
580
手戻りゼロ? Spec Driven Developmentとは@KAG AI week
tmhirai
1
160
encoding/json/v2のUnmarshalはこう変わった:内部実装で見る設計改善
kurakura0916
0
320
SourceGeneratorのマーカー属性問題について
htkym
0
160
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
310
NOT A HOTEL - 建築や人と融合し、自由を創り出すソフトウェア
not_a_hokuts
2
580
AI活用のコスパを最大化する方法
ochtum
0
120
米国のサイバーセキュリティタイムラインと見る Goの暗号パッケージの進化
tomtwinkle
2
430
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Paper Plane (Part 1)
katiecoart
PRO
0
5.2k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
310
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
63
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Balancing Empowerment & Direction
lara
5
930
Into the Great Unknown - MozCon
thekraken
40
2.3k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
370
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
230
Designing Powerful Visuals for Engaging Learning
tmiket
0
260
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
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