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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Javier Cervantes
May 30, 2014
Programming
110
0
Share
Duck Typing
Based on chapter #5 of POODR.
Given at rubygdl.org.
Javier Cervantes
May 30, 2014
More Decks by Javier Cervantes
See All by Javier Cervantes
Continuous Delivery para todos @ SGNext
solojavier
0
130
Gobot.io y el internet de las cosas
solojavier
0
120
Deliberate Practice - Lightning Talk
solojavier
0
160
Golang - WePow Talks
solojavier
0
69
Server Provisioning and Configuration
solojavier
0
71
Evolución Robótica
solojavier
0
57
Re-evolución robótica
solojavier
0
100
Artoo : Ruby on robots
solojavier
0
120
Las pruebas primero
solojavier
0
77
Other Decks in Programming
See All in Programming
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
1.4k
AWSコミュニティ活動は顧客のクラウド推進に効くのか / Do AWS community activities help customers adopt the cloud?
seike460
PRO
0
160
AIと共に生きる技術選定 2026
sgash708
0
120
PCOVから学ぶコードカバレッジ #phpcon_odawara
o0h
PRO
0
290
t *testing.T は どこからやってくるの?
otakakot
1
880
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
1
190
My daily life on Ruby
a_matsuda
2
130
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
310
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
【26新卒研修】OpenAPI/Swagger REST API研修
dip_tech
PRO
0
120
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
200
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
1.1k
Featured
See All Featured
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.4k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
320
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
300
Docker and Python
trallard
47
3.8k
Testing 201, or: Great Expectations
jmmastey
46
8.1k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
170
Rails Girls Zürich Keynote
gr2m
96
14k
Site-Speed That Sticks
csswizardry
13
1.2k
The Language of Interfaces
destraynor
162
26k
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