20 Nov '13, 7am

“Evaluating Alternative Decorator Implementations In Ruby”

Evaluating Alternative Decorator Implementations In Ruby Dan Croak December 26, 2011 design patterns ruby Recently, decorators have become a big part of my Ruby on Rails life. We used them heavily in a recent client project, Harold Giménez wrote a great post about them, Avdi Grimm is writing about them in Objects on Rails , and Jeff Casimir has a great presentation about them. Until recently, I still had some questions, however, such as: 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? I'd like to try to answer those questions here. Intent A decorator is a design pattern. Its intent, as described in Design Patterns by the Gang...

Full article: http://robots.thoughtbot.com/evaluating-alternative-decor...

Tweets

New episode: PostgreSQL RDS, chruby, Quickbooks...

ruby5.envylabs.com 19 Nov '13, 9pm

November 15th, 2013 Keep track of your consoles with marco-polo, get a head start on sass with Bitters, smaller payloads w...

@jinjor 想像で話すと、fileタスクが近いんじゃないかと思いました。依存を調べるのでは...

rake.rubyforge.org 19 Nov '13, 1pm

Prior to version 0.8.0, rake was only able to handle command line arguments of the form NAME=VALUE that were passed into R...

Ruby is not meant for preventing idiots from sh...

m.onkey.org 30 Nov '13, 10am

However, above are not really the primary reasons I don’t like freeze . It’s the fact that you cannot unfreeze an object w...

Ruby 1.9.3-p484 is released

ruby-lang.org 02 Dec '13, 3pm

Now Ruby 1.9.3-p484 is released. This release includes a security fix about Ruby interpreter core: Heap Overflow in Floati...

Ruby 2.1.0-preview2 is released

ruby-lang.org 03 Dec '13, 3pm

Ruby 2.1.0-preview2 is released We are pleased to announce the release of Ruby 2.1.0-preview2. Please test the new feature...

Stupid Ruby Tricks

robots.thoughtbot.com 26 Nov '13, 6am

At first glance, this barely looks like valid Ruby. But somehow, it just makes sense: it splits up the array. If you're go...

Top Ruby Article: Double Shot #1247:

afreshcup.com 25 Nov '13, 12pm

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...

Top Ruby Article: Double Shot #1248:

afreshcup.com 26 Nov '13, 12pm

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...