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
110
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
120
Deliberate Practice - Lightning Talk
solojavier
0
160
Golang - WePow Talks
solojavier
0
67
Server Provisioning and Configuration
solojavier
0
69
Evolución Robótica
solojavier
0
54
Re-evolución robótica
solojavier
0
97
Artoo : Ruby on robots
solojavier
0
120
Las pruebas primero
solojavier
0
73
Other Decks in Programming
See All in Programming
PHP でエミュレータを自作して Ubuntu を動かそう
m3m0r7
PRO
2
140
Linux Kernelの1文字のミスで 権限昇格ができた話
rqda
0
2.1k
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
610
20260315 AWSなんもわからん🥲
chiilog
2
170
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
240
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.7k
AI Assistants for Your Angular Solutions
manfredsteyer
PRO
0
160
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
520
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
160
Migration to Signals, Signal Forms, Resource API, and NgRx Signal Store @Angular Days 03/2026 Munich
manfredsteyer
PRO
0
150
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
1.1k
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
150
Featured
See All Featured
Ruling the World: When Life Gets Gamed
codingconduct
0
180
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.3k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
400
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
160
Marketing to machines
jonoalderson
1
5k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
230
Embracing the Ebb and Flow
colly
88
5k
Design in an AI World
tapps
0
180
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
430
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