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
74
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
Road to Ruby for A Linguistics Nerd
hayat01sh1da
PRO
0
230
Jakarta EE Meets AI
ivargrimstad
0
900
JAWS DAYS 2025 re_Cheers: WEB
komakichi
0
120
UMAPをざっくりと理解 / Overview of UMAP
kaityo256
PRO
3
1.5k
eBPF超入門「o11yに使える」とは (20250424_eBPF_o11y)
thousanda
1
120
REALITY コマンド作成チュートリアル
nishiuriraku
0
120
ぽちぽち選択するだけでOSSを読めるVSCode拡張機能
ymbigo
14
6.3k
2025年のz-index設計を考える
tak_dcxi
11
4.3k
ウォンテッドリーの「ココロオドル」モバイル開発 / Wantedly's "kokoro odoru" mobile development
kubode
2
560
インプロセスQAにおいて大事にしていること / In-process QA Meetup
medley
0
170
Optimizing JRuby 10
headius
0
590
M5UnitUnified 最新動向 2025/05
gob
0
140
Featured
See All Featured
Bash Introduction
62gerente
613
210k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
The Cult of Friendly URLs
andyhume
78
6.3k
The Cost Of JavaScript in 2023
addyosmani
49
7.8k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
24
2.7k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
[RailsConf 2023] Rails as a piece of cake
palkan
54
5.5k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.8k
Being A Developer After 40
akosma
91
590k
Automating Front-end Workflow
addyosmani
1370
200k
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