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
69
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
75
Gobot.io y el internet de las cosas
solojavier
0
93
Deliberate Practice - Lightning Talk
solojavier
0
110
Golang - WePow Talks
solojavier
0
49
Server Provisioning and Configuration
solojavier
0
51
Evolución Robótica
solojavier
0
42
Re-evolución robótica
solojavier
0
71
Artoo : Ruby on robots
solojavier
0
98
Las pruebas primero
solojavier
0
48
Other Decks in Programming
See All in Programming
障害対応を起点としたもっといい開発と運用のサイクル作りのためにできること / Hatena Enginner Seminar #29
polamjag
0
380
AWS CDKコントリビュートTIPS / aws-cdk-contribution-tips
gotok365
4
380
Git Rebase
bkuhlmann
11
1.6k
Three ways to use AI on Android: The Good, the Bad and the Ugly
marxallski
0
110
Kotlin Multiplatform at Stable and Beyond (Android Makers 2024)
zsmb
0
470
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
120
PostmanでAPIの動作確認が楽になった話
h455h1
0
180
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
170
Node.js v22 で変わること
yosuke_furukawa
PRO
11
3.9k
SwiftUIで使いやすいToastの作り方 / How to build a Toast system which is easy to use in SwiftUI
lovee
3
170
禅の心を手に入れよ
eltociear
1
330
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
870
Featured
See All Featured
Debugging Ruby Performance
tmm1
70
11k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
Atom: Resistance is Futile
akmur
260
25k
Unsuck your backbone
ammeep
663
57k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
Code Reviewing Like a Champion
maltzj
515
39k
Code Review Best Practice
trishagee
56
15k
For a Future-Friendly Web
brad_frost
172
9k
Fantastic passwords and where to find them - at NoRuKo
philnash
39
2.5k
Raft: Consensus for Rubyists
vanstee
133
6.3k
Agile that works and the tools we love
rasmusluckow
325
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