--_ab484bfd-fd63-435c-bfde-4b4fb7a1e92f_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Everybody thanks for the explanation. Roelof
 > Date: Mon, 24 Sep 2012 21:00:05 +0900
> From: shortcutter / googlemail.com
> Subject: Re: sandwhich principle (ruby koans)
> To: ruby-talk / ruby-lang.org
> 
> On Mon, Sep 24, 2012 at 1:13 PM, Roelof Wobben <rwobben / hotmail.com> 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/
> 
 		 	   		  -_ab484bfd-fd63-435c-bfde-4b4fb7a1e92f_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Everybody thanks for the explanation.<BR>&nbsp;<BR>Roelof<BR><br>&nbsp;<BR><div><div id="SkyDrivePlaceholder"></div>&gt; Date: Mon, 24 Sep 2012 21:00:05 +0900<br>&gt; From: shortcutter / googlemail.com<br>&gt; Subject: Re: sandwhich principle (ruby koans)<br>&gt; To: ruby-talk / ruby-lang.org<br>&gt; <br>&gt; On Mon, Sep 24, 2012 at 1:13 PM, Roelof Wobben &lt;rwobben / hotmail.com&gt; wrote:<br>&gt; <br>&gt; &gt; If I understand it right the principle is the same as the DRY method<br>&gt;br>&gt; DRY is a meta principle: the reduction of redundancy (or: repetition)<br>&gt; is the driving force behind many patterns and refactoring approaches.<br>&gt; Identifying common behavior and finding proper abstractions for it is<br>&gt; one of the core tasks in software engineering - if not the single most<br>&gt; important task we do.  It gives you<br>&gt; <br>&gt;  - reduced code size<br>&gt;  - less errors during maintenance (if the same code appears n times,<br>&gt; you will have to fix a bug or implement an extension of the<br>&gt; functionality in n locationsnd can easily forget one).<br>&gt;  - sometimes increased complexity<br>&gt; <br>&gt; Kind regards<br>&gt; <br>&gt; robert<br>&gt; <br>&gt; -- <br>&gt; remember.guy do |as, often| as.you_can - without end<br>&gt; http://blog.rubybestpractices.com/<br>&gt; <br></div> 		 	   		</div></body>
</html>-_ab484bfd-fd63-435c-bfde-4b4fb7a1e92f_--