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
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
110
Deliberate Practice - Lightning Talk
solojavier
0
150
Golang - WePow Talks
solojavier
0
63
Server Provisioning and Configuration
solojavier
0
68
Evolución Robótica
solojavier
0
52
Re-evolución robótica
solojavier
0
89
Artoo : Ruby on robots
solojavier
0
110
Las pruebas primero
solojavier
0
65
Other Decks in Programming
See All in Programming
Grafana:建立系統全知視角的捷徑
blueswen
0
290
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
6
1.7k
Canon EOS R50 V と R5 Mark II 購入でみえてきた最近のデジイチ VR180 事情、そして VR180 静止画に活路を見出すまで
karad
0
140
Vibe codingでおすすめの言語と開発手法
uyuki234
0
180
クラウドに依存しないS3を使った開発術
simesaba80
0
230
Basic Architectures
denyspoltorak
0
280
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
5.4k
AgentCoreとHuman in the Loop
har1101
5
170
ゆくKotlin くるRust
exoego
1
200
Denoのセキュリティに関する仕組みの紹介 (toranoana.deno #23)
uki00a
0
240
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
1
3.1k
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2k
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
58
41k
Statistics for Hackers
jakevdp
799
230k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
150
Documentation Writing (for coders)
carmenintech
77
5.2k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
From π to Pie charts
rasagy
0
120
The Language of Interfaces
destraynor
162
26k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
115
100k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
120
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
180
Discover your Explorer Soul
emna__ayadi
2
1k
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