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
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Duck Typing
Based on chapter #5 of POODR.
Given at rubygdl.org.
Javier Cervantes
May 30, 2014
More Decks by Javier Cervantes
See All by Javier Cervantes
Continuous Delivery para todos @ SGNext
solojavier
0
150
Gobot.io y el internet de las cosas
solojavier
0
120
Deliberate Practice - Lightning Talk
solojavier
0
170
Golang - WePow Talks
solojavier
0
72
Server Provisioning and Configuration
solojavier
0
77
Evolución Robótica
solojavier
0
68
Re-evolución robótica
solojavier
0
120
Artoo : Ruby on robots
solojavier
0
150
Las pruebas primero
solojavier
0
87
Other Decks in Programming
See All in Programming
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
350
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
190
そこに3びきプロダクトがいるじゃろう——生成AI時代における“価値が届かない理由”の構造
kosuket
0
570
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
270
コンパウンドプロダクト開発のためのローカルプロセスマネージャー再発明 #layerxgo
izumin5210
0
180
Claude CodeとAgentCore Gatewayを繋ぐ際の認証認可 / Authentication and authorization when connecting Claude Code with AgentCore Gateway
har1101
2
360
使いながら育てる Claude Code — 開発フローの1コマンド化 × 繰り返し指摘の自動仕組み化
shiki_kakaku
0
1.9k
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
170
30年振りにコンパイラの定数整数除算を改善した
herumi
9
4k
メールのエイリアス機能を履き違えない
isshinfunada
0
250
Android CLI
fornewid
0
230
「つくるAI」だけではバグは見つからない ~テストに必要な「見つけるAI」を分離させる戦略~
mfunaki
0
160
Featured
See All Featured
For a Future-Friendly Web
brad_frost
183
10k
It's Worth the Effort
3n
188
29k
Odyssey Design
rkendrick25
PRO
2
770
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.9k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
Ethics towards AI in product and experience design
skipperchong
2
350
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
480
Chasing Engaging Ingredients in Design
codingconduct
0
280
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Game over? The fight for quality and originality in the time of robots
wayneb77
1
250
Done Done
chrislema
186
16k
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