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
73
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
96
Gobot.io y el internet de las cosas
solojavier
0
110
Deliberate Practice - Lightning Talk
solojavier
0
140
Golang - WePow Talks
solojavier
0
59
Server Provisioning and Configuration
solojavier
0
61
Evolución Robótica
solojavier
0
46
Re-evolución robótica
solojavier
0
81
Artoo : Ruby on robots
solojavier
0
100
Las pruebas primero
solojavier
0
55
Other Decks in Programming
See All in Programming
ベクトル検索システムの気持ち
monochromegane
30
9.7k
自分のために作ったアプリが、グローバルに使われるまで / Indie App Development Lunch LT
pixyzehn
1
150
リストビュー画面UX改善の振り返り
splcywolf
0
110
コンテナでLambdaをデプロイするときに知っておきたかったこと
_takahash
0
170
マルチアカウント環境での、そこまでがんばらない RI/SP 運用設計
wa6sn
0
690
Denoでフロントエンド開発 2025年春版 / Frontend Development with Deno (Spring 2025)
petamoriken
1
1.3k
国漢文混用体からHolloまで
minhee
1
140
PHPでお金を扱う時、終わりのない 謎の1円調査の旅にでなくて済む方法
nakka
4
1.4k
メモリウォールを超えて:キャッシュメモリ技術の進歩
kawayu
0
1.7k
MCP世界への招待: AIエンジニアが創る次世代エージェント連携の世界
gunta
4
850
趣味全開のAITuber開発
kokushin
0
180
AI Coding Agent Enablement - エージェントを自走させよう
yukukotani
13
5.3k
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1369
200k
Become a Pro
speakerdeck
PRO
27
5.3k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
500
A better future with KSS
kneath
239
17k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.1k
YesSQL, Process and Tooling at Scale
rocio
172
14k
Git: the NoSQL Database
bkeepers
PRO
430
65k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.2k
Done Done
chrislema
183
16k
Product Roadmaps are Hard
iamctodd
PRO
52
11k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
2.9k
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