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
100
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
120
Gobot.io y el internet de las cosas
solojavier
0
120
Deliberate Practice - Lightning Talk
solojavier
0
160
Golang - WePow Talks
solojavier
0
66
Server Provisioning and Configuration
solojavier
0
69
Evolución Robótica
solojavier
0
53
Re-evolución robótica
solojavier
0
94
Artoo : Ruby on robots
solojavier
0
120
Las pruebas primero
solojavier
0
70
Other Decks in Programming
See All in Programming
Claude Code、ちょっとした工夫で開発体験が変わる
tigertora7571
0
200
Swift ConcurrencyでよりSwiftyに
yuukiw00w
0
240
nilとは何か 〜interfaceの構造とnil!=nilから理解する〜
kuro_kurorrr
3
1.6k
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
410
CSC307 Lecture 15
javiergs
PRO
0
220
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
9
2.5k
Codexに役割を持たせる 他のAIエージェントと組み合わせる実務Tips
o8n
1
730
Rubyと楽しいをつくる / Creating joy with Ruby
chobishiba
0
210
メタプログラミングで実現する「コードを仕様にする」仕組み/nikkei-tech-talk43
nikkei_engineer_recruiting
0
160
ふつうの Rubyist、ちいさなデバイス、大きな一年
bash0c7
0
610
Railsの気持ちを考えながらコントローラとビューを整頓する/tidying-rails-controllers-and-views-as-rails-think
moro
4
370
AI活用のコスパを最大化する方法
ochtum
0
120
Featured
See All Featured
Test your architecture with Archunit
thirion
1
2.2k
New Earth Scene 8
popppiees
1
1.7k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
210
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
380
How GitHub (no longer) Works
holman
316
140k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
450
How to Talk to Developers About Accessibility
jct
2
140
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
80
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
330
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
360
From π to Pie charts
rasagy
0
150
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.7k
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