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
95
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
80
Artoo : Ruby on robots
solojavier
0
100
Las pruebas primero
solojavier
0
53
Other Decks in Programming
See All in Programming
ゼロからの、レトロゲームエンジンの作り方
tokujiros
3
1.1k
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
770
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
1.4k
Androidアプリのモジュール分割における:x:commonを考える
okuzawats
1
280
.NETでOBS Studio操作してみたけど…… / Operating OBS Studio by .NET
skasweb
0
120
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
9
2.4k
Fixstars高速化コンテスト2024準優勝解法
eijirou
0
190
テストコード書いてみませんか?
onopon
2
340
20年もののレガシープロダクトに 0からPHPStanを入れるまで / phpcon2024
hirobe1999
0
1k
watsonx.ai Dojo #6 継続的なAIアプリ開発と展開
oniak3ibm
PRO
0
170
Swiftコンパイラ超入門+async関数の仕組み
shiz
0
180
GitHub CopilotでTypeScriptの コード生成するワザップ
starfish719
26
6k
Featured
See All Featured
Designing for Performance
lara
604
68k
Optimizing for Happiness
mojombo
376
70k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Embracing the Ebb and Flow
colly
84
4.5k
YesSQL, Process and Tooling at Scale
rocio
170
14k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
192
16k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
30
2.1k
How to Ace a Technical Interview
jacobian
276
23k
Making Projects Easy
brettharned
116
6k
KATA
mclloyd
29
14k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
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