From: Robert Klemme Date: 2012-09-24T21:00:05+09:00 Subject: Re: sandwhich principle (ruby koans) On Mon, Sep 24, 2012 at 1:13 PM, Roelof Wobben wrote: > If I understand it right the principle is the same as the DRY method DRY is a meta principle: the reduction of redundancy (or: repetition) is the driving force behind many patterns and refactoring approaches. Identifying common behavior and finding proper abstractions for it is one of the core tasks in software engineering - if not the single most important task we do. It gives you - reduced code size - less errors during maintenance (if the same code appears n times, you will have to fix a bug or implement an extension of the functionality in n locations and can easily forget one). - sometimes increased complexity Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/