Guidance on how to break down problems and structure solutions.
Category: Design
Episode #498: Query to Command
"Tell, don't ask" is easy to say, but how do you actually put it into practice?
Episode #487: Prototype Pattern
Simplify baroque domain models by flattening hierarchies of reuse.
Episode #483: Extract Default to Method
Some pointers on making your Ruby parameter defaults self-documenting.
Episode #479: Handle
Learn how to present a natural interface to client code, while hiding implementation architecture details.
Slim down hefty Rails controllers AND models, using domain model events
If you’ve done much Rails coding, you’ve probably heard the guideline: “skinny controller, fat model”. But achieving this can be easier said than done. Especially when your controllers are bloated with …
Episode #473: Contextual Identity Part 2
Learn how to model a system where an object may only exist in one collection at a time.
Two screencasts, two ways to eradicate Ruby nil values
Learn two ways to avoid switching on nil in Rails apps, in this double feature from RubyTapas and Upcase