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
73
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
96
Gobot.io y el internet de las cosas
solojavier
0
110
Deliberate Practice - Lightning Talk
solojavier
0
140
Golang - WePow Talks
solojavier
0
59
Server Provisioning and Configuration
solojavier
0
61
Evolución Robótica
solojavier
0
46
Re-evolución robótica
solojavier
0
81
Artoo : Ruby on robots
solojavier
0
100
Las pruebas primero
solojavier
0
55
Other Decks in Programming
See All in Programming
Chrome Extension Techniques from Hell
moznion
1
150
PHPer's Guide to Daemon Crafting Taming and Summoning
uzulla
2
1.1k
Day0 初心者向けワークショップ実践!ソフトウェアテストの第一歩
satohiroyuki
0
780
趣味全開のAITuber開発
kokushin
0
180
SLI/SLOの設定を進めるその前に アラート品質の改善に取り組んだ話
tanden
2
790
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
750
Compose Hot Reload is here, stop re-launching your apps! (Android Makers 2025)
zsmb
1
300
AI時代のプログラミング教育 / programming education in ai era
kishida
23
21k
これだけは知っておきたいクラス設計の基礎知識 version 2
masuda220
PRO
22
4.9k
AWSで雰囲気でつくる! VRChatの写真変換ピタゴラスイッチ
anatofuz
0
120
国漢文混用体からHolloまで
minhee
1
130
custom_lintで始めるチームルール管理
akaboshinit
0
200
Featured
See All Featured
Side Projects
sachag
452
42k
We Have a Design System, Now What?
morganepeng
51
7.5k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
VelocityConf: Rendering Performance Case Studies
addyosmani
328
24k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
102
19k
The Pragmatic Product Professional
lauravandoore
33
6.5k
Testing 201, or: Great Expectations
jmmastey
42
7.4k
The Language of Interfaces
destraynor
157
24k
Fontdeck: Realign not Redesign
paulrobertlloyd
83
5.5k
Optimizing for Happiness
mojombo
377
70k
Adopting Sorbet at Scale
ufuk
75
9.3k
Measuring & Analyzing Core Web Vitals
bluesmoon
6
360
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