Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Duck Typing
Search
Javier Cervantes
May 30, 2014
Programming
0
95
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
110
Gobot.io y el internet de las cosas
solojavier
0
110
Deliberate Practice - Lightning Talk
solojavier
0
150
Golang - WePow Talks
solojavier
0
63
Server Provisioning and Configuration
solojavier
0
67
Evolución Robótica
solojavier
0
52
Re-evolución robótica
solojavier
0
87
Artoo : Ruby on robots
solojavier
0
110
Las pruebas primero
solojavier
0
63
Other Decks in Programming
See All in Programming
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
2.9k
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
120
AIコーディングエージェント(Manus)
kondai24
0
210
これならできる!個人開発のすゝめ
tinykitten
PRO
0
120
大規模Cloud Native環境におけるFalcoの運用
owlinux1000
0
180
ELYZA_Findy AI Engineering Summit登壇資料_AIコーディング時代に「ちゃんと」やること_toB LLMプロダクト開発舞台裏_20251216
elyza
2
550
AIエージェントの設計で注意するべきポイント6選
har1101
5
2k
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
11
3.5k
AIコーディングエージェント(NotebookLM)
kondai24
0
220
C-Shared Buildで突破するAI Agent バックテストの壁
po3rin
0
410
ローカルLLMを⽤いてコード補完を⾏う VSCode拡張機能を作ってみた
nearme_tech
PRO
0
140
生成AI時代を勝ち抜くエンジニア組織マネジメント
coconala_engineer
0
380
Featured
See All Featured
WCS-LA-2024
lcolladotor
0
380
Designing for humans not robots
tammielis
254
26k
Ethics towards AI in product and experience design
skipperchong
1
140
Getting science done with accelerated Python computing platforms
jacobtomlinson
0
76
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
0
940
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
48
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
0
42
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
92
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
120
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