Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
160
Gobot.io y el internet de las cosas
solojavier
0
130
Deliberate Practice - Lightning Talk
solojavier
0
180
Golang - WePow Talks
solojavier
0
80
Server Provisioning and Configuration
solojavier
0
77
Evolución Robótica
solojavier
0
80
Re-evolución robótica
solojavier
0
130
Artoo : Ruby on robots
solojavier
0
160
Las pruebas primero
solojavier
0
100
Other Decks in Programming
See All in Programming
sbt 2.0: takeoff
eed3si9n
0
170
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
460
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.3k
golang-bob.pdf
iwatsukayura
0
130
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
340
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
230
Workers Cache を知る
syumai
0
370
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
2
1.2k
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
200
GraphQL の onError と Nullability のこれから
quramy
0
170
Kotlinの15年とServer-Side Kotlin
n_takehata
1
160
Featured
See All Featured
How GitHub (no longer) Works
holman
316
150k
Making the Leap to Tech Lead
cromwellryan
135
10k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
960
Embracing the Ebb and Flow
colly
88
5.2k
Claude Code のすすめ
schroneko
67
230k
The Cost Of JavaScript in 2023
addyosmani
55
10k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
810
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
610
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
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