18 May '13, 3am

A bit old, but really good: evaluating alternative Decorator implementations in Ruby from Thoughtbot

Should I roll my own decorators? If I roll my own, what are the tradeoffs of different implementations? Do I care about the “transparent interface” requirements of the Gang of Four’s decorator definition? Is it good or bad that the decorated object’s class is the decorator instead of the component?

Full article: http://robots.thoughtbot.com/post/14825364877/evaluating-...

Tweets