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
69
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
75
Gobot.io y el internet de las cosas
solojavier
0
93
Deliberate Practice - Lightning Talk
solojavier
0
100
Golang - WePow Talks
solojavier
0
49
Server Provisioning and Configuration
solojavier
0
51
Evolución Robótica
solojavier
0
42
Re-evolución robótica
solojavier
0
71
Artoo : Ruby on robots
solojavier
0
98
Las pruebas primero
solojavier
0
48
Other Decks in Programming
See All in Programming
Let's learn code review
riofujimon
2
410
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
4
840
Ruby Function Composition
bkuhlmann
1
330
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
940
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
130
雑に思考を整理する技術と効能
konifar
60
29k
What We Can Learn From OSS
inouehi
0
420
Komplexe Oberflächen mit SVG und der Web Animation API
joergneumann
0
670
Code Reviews
bkuhlmann
4
890
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
340
2 週間で Twitter Bot を作ってみた
contour_gara
0
510
Anthropic Cookbook のおすすめレシピ
schroneko
7
980
Featured
See All Featured
Atom: Resistance is Futile
akmur
259
25k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
274
13k
Thoughts on Productivity
jonyablonski
58
3.8k
Fantastic passwords and where to find them - at NoRuKo
philnash
37
2.5k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Imperfection Machines: The Place of Print at Facebook
scottboms
260
12k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
104
6.6k
How GitHub (no longer) Works
holman
304
140k
KATA
mclloyd
15
12k
It's Worth the Effort
3n
180
27k
How to name files
jennybc
65
93k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
121
39k
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