Tag Archives: design patterns

DisplayCase Gem Now Available

Announcing the display_case gem, an implementation of the Exhibit pattern described in (and extracted from) “Objects on Rails”. Continue reading

Posted in Announcements | Tagged , , , , , , , , | 5 Comments

End your OOP Confusion with the Design Pattern Classifier

The Ruby community has seen a renaissance of interest in classic Object-Oriented thinking lately. We’re talking about Presenters, and DCI, and Data Objects. But with these new discussions come new problems. Namely: the dreaded pattern terminology debate. He says it’s a Decorator. … Continue reading

Posted in Humor | Tagged , | 2 Comments

Null Objects and Falsiness

Thank you to Ben Hamill for sending me a question that prompted this post. Checking for object presence Very often in Ruby code, we would like to execute some action only if an object is present: def slug(title) if title … Continue reading

Posted in Ruby | Tagged , , , , , | 39 Comments

Full Exploitation

“Full exploitation” is essentially a pattern in itself, and one we will come back to repeatedly. Whether it is applied to software development, architecture, or music composition, exploiting a good idea repeatedly can enhance the integrity and cohesion of the … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments