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
99
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
63
Server Provisioning and Configuration
solojavier
0
68
Evolución Robótica
solojavier
0
52
Re-evolución robótica
solojavier
0
87
Artoo : Ruby on robots
solojavier
0
110
Las pruebas primero
solojavier
0
64
Other Decks in Programming
See All in Programming
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
150
「コードは上から下へ読むのが一番」と思った時に、思い出してほしい話
panda728
PRO
39
26k
Grafana:建立系統全知視角的捷徑
blueswen
0
270
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
3.3k
Graviton と Nitro と私
maroon1st
0
160
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
1
190
LLMで複雑な検索条件アセットから脱却する!! 生成的検索インタフェースの設計論
po3rin
4
1.1k
2年のAppleウォレットパス開発の振り返り
muno92
PRO
0
160
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
180
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
11
4.8k
ゲームの物理 剛体編
fadis
0
390
TestingOsaka6_Ozono
o3
0
260
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
58
6.2k
My Coaching Mixtape
mlcsv
0
20
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Between Models and Reality
mayunak
1
150
A designer walks into a library…
pauljervisheath
210
24k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
770
Prompt Engineering for Job Search
mfonobong
0
140
Unsuck your backbone
ammeep
671
58k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.2k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
71
Music & Morning Musume
bryan
46
7k
Test your architecture with Archunit
thirion
1
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