Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Lightweight Objects Seattle.rb
Search
pete higgins
March 05, 2013
Programming
90
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Lightweight Objects Seattle.rb
pete higgins
March 05, 2013
More Decks by pete higgins
See All by pete higgins
Help Seattle.rb
phiggins
0
94
Rails Archeology
phiggins
2
130
Webmock
phiggins
0
85
Ruby Stdlib's Benchmark
phiggins
0
72
Rails Maintainance Headaches
phiggins
0
150
Hacking Ruby
phiggins
3
220
Cute Animals You've Never Heard Of
phiggins
0
500
Other Decks in Programming
See All in Programming
ALB ログから Trace を気合で繋げる技術
fohte
7
890
Deep dive into the select statement (GopherCon UK)
jespino
0
180
JPUG勉強会 OSSデータベースの内部構造を理解しよう(第2回)
oga5
0
120
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
3
150
go-spidermonkeyでAIエージェントのCode Modeを実装する
syumai
3
1.5k
Vibes Containers 〜AIで変わるコンテナ設計と運用〜
tkikuc
3
530
AI × TiDD / 2026.09.05 Redmine 大阪
tokudiro
1
130
iOSDC2026登壇資料.pdf
riofujimon
0
120
Foundry Localでエージェント開発
seosoft
0
180
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
4k
Security issues being discussed on Web Platforms
petamoriken
0
820
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
140
Featured
See All Featured
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
430
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.3k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
460
30 Presentation Tips
portentint
PRO
1
390
Documentation Writing (for coders)
carmenintech
77
5.5k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
350
Joys of Absence: A Defence of Solitary Play
codingconduct
1
510
A better future with KSS
kneath
240
18k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
450
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.2k
How to Talk to Developers About Accessibility
jct
2
540
Transcript
Lightweight Objects Pete Higgins Seattle.rb
Me twitter: @pete_higgins github: @phiggins
Not me
Also not me
Me
Me
Me
Why? * Fast development * boilerplate == typos * less
typing, laziness
Hash/Array/etc * Familiar * Builtin * (Relatively) efficient * Do
a lot out of the box
Downsides * Bad at conveying purpose
OpenStruct
Configuration
Simple Stubs
Result/Status
Default is nil
Struct
Simple stubs
Result/Status
Downsides * Not much more work to just use a
class * Not easy to initialize with a hash
Struct creation
OpenStruct vs. Hash ¯\_( ツ )_/¯
Minitest::Mock
Questions? twitter: @pete_higgins github: @phiggins