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
72
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
93
Gobot.io y el internet de las cosas
solojavier
0
110
Deliberate Practice - Lightning Talk
solojavier
0
140
Golang - WePow Talks
solojavier
0
56
Server Provisioning and Configuration
solojavier
0
60
Evolución Robótica
solojavier
0
44
Re-evolución robótica
solojavier
0
78
Artoo : Ruby on robots
solojavier
0
100
Las pruebas primero
solojavier
0
53
Other Decks in Programming
See All in Programming
命名をリントする
chiroruxx
1
420
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
480
競技プログラミングへのお誘い@阪大BOOSTセミナー
kotamanegi
0
360
これが俺の”自分戦略” プロセスを楽しんでいこう! - Developers CAREER Boost 2024
niftycorp
PRO
0
190
ゆるやかにgolangci-lintのルールを強くする / Kyoto.go #56
utgwkk
2
400
PSR-15 はあなたのための ものではない? - phpcon2024
myamagishi
0
140
MCP with Cloudflare Workers
yusukebe
2
220
Monixと常駐プログラムの勘どころ / Scalaわいわい勉強会 #4
stoneream
0
280
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
190
testcontainers のススメ
sgash708
1
120
ある日突然あなたが管理しているサーバーにDDoSが来たらどうなるでしょう?知ってるようで何も知らなかったDDoS攻撃と対策 #phpcon.2024
akase244
1
150
今年一番支援させていただいたのは認証系サービスでした
satoshi256kbyte
1
260
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
For a Future-Friendly Web
brad_frost
175
9.4k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
A Modern Web Designer's Workflow
chriscoyier
693
190k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
111
49k
Speed Design
sergeychernyshev
25
670
Optimizing for Happiness
mojombo
376
70k
Faster Mobile Websites
deanohume
305
30k
Why Our Code Smells
bkeepers
PRO
335
57k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
Optimising Largest Contentful Paint
csswizardry
33
3k
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