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
71
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
89
Gobot.io y el internet de las cosas
solojavier
0
99
Deliberate Practice - Lightning Talk
solojavier
0
140
Golang - WePow Talks
solojavier
0
55
Server Provisioning and Configuration
solojavier
0
58
Evolución Robótica
solojavier
0
44
Re-evolución robótica
solojavier
0
76
Artoo : Ruby on robots
solojavier
0
100
Las pruebas primero
solojavier
0
52
Other Decks in Programming
See All in Programming
標準ライブラリの動向とイテレータのパフォーマンス
makki_d
3
190
Cohesion in Modeling and Design
mploed
3
180
Unlocking Python's Core Magic
leew
0
110
App Router 悲喜交々
quramy
7
370
ビット演算の話 / Let's play with bit operations
kaityo256
PRO
3
160
CSC509 Lecture 03
javiergs
PRO
0
130
推しの夫に恋のGPS「ときメーター」#M5Stack #IoT #M5JPTour2024
riyu
0
220
Remix × Cloudflare Pages × Sentry 奮闘記 / remix-pages-sentry
nkzn
1
370
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
0
140
Frontend Magic mit CSS Houdini
joergneumann
0
420
CSC509 Lecture 02
javiergs
PRO
0
160
Flutterアプリを生成AIで生成する勘所
rizumita
0
250
Featured
See All Featured
The Invisible Side of Design
smashingmag
297
50k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
How to Ace a Technical Interview
jacobian
275
23k
Adopting Sorbet at Scale
ufuk
73
8.9k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
360
19k
It's Worth the Effort
3n
183
27k
Learning to Love Humans: Emotional Interface Design
aarron
271
40k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
230
17k
Designing for humans not robots
tammielis
249
25k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
7.5k
Embracing the Ebb and Flow
colly
83
4.4k
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