N design patterns you might actually use
summary
Clear claim: five concrete Ruby patterns are explained and shown working in real code — n = 5 — with production examples: reports refactored into a template, storage chosen via strategy (local vs S3), hierarchical scoring via composite, runtime buffs via decorator using Ruby's Forwardable, and queued work via Delayed Job. Code samples use ActiveRecord and migrations, show how things simplify (and where they bite: harder tracing, initialization pain) and recommend preferring procs/blocks over heavyweight command classes in Ruby.
AI-written summary · about
chapters (22)
- 0:00Intro
- 1:00Singleton?
- 2:57Common Vocabulary
- 5:08Extract Transform Load
- 5:35Active Record Models
- 5:55Reporting
- 10:25Polymorphic Algorithm
- 10:43Extract Algorithm
- 11:30Storage Strategy
- 12:04Stock Market
- 12:22Sales Tax
- 16:56Task Management
- 17:57Test Scores
- 21:19Wrapper Adding Functionality
- 21:41GUI Elements
- 22:09Calculating Discounts
- 26:31Delayed Job
- 26:42Drawing Applications
- 26:55Active Record Migrations
- 27:51Delegation
- 28:38You Are Using Patterns
- 28:56Cheat Sheet








