From: Roelof Wobben Date: 2012-09-24T21:17:37+09:00 Subject: Re: sandwhich principle (ruby koans) --_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=2C 24 Sep 2012 21:00:05 +0900 > From: shortcutter@googlemail.com > Subject: Re: sandwhich principle (ruby koans) > To: ruby-talk@ruby-lang.org >=20 > On Mon=2C Sep 24=2C 2012 at 1:13 PM=2C Roelof Wobben wrote: >=20 > > If I understand it right the principle is the same as the DRY method >=20 > 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 >=20 > - reduced code size > - less errors during maintenance (if the same code appears n times=2C > 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 >=20 > Kind regards >=20 > robert >=20 > --=20 > remember.guy do |as=2C often| as.you_can - without end > http://blog.rubybestpractices.com/ >=20 = --_ab484bfd-fd63-435c-bfde-4b4fb7a1e92f_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Everybody thanks for the explanation.
 =3B
Roelof

 =3B=
>=3B Date: Mon=2C 24 Sep 2= 012 21:00:05 +0900
>=3B From: shortcutter@googlemail.com
>=3B Sub= ject: Re: sandwhich principle (ruby koans)
>=3B To: ruby-talk@ruby-lan= g.org
>=3B
>=3B On Mon=2C Sep 24=2C 2012 at 1:13 PM=2C Roelof Wo= bben <=3Brwobben@hotmail.com>=3B wrote:
>=3B
>=3B >=3B If = I understand it right the principle is the same as the DRY method
>=3B=
>=3B DRY is a meta principle: the reduction of redundancy (or: repet= ition)
>=3B is the driving force behind many patterns and refactoring = approaches.
>=3B Identifying common behavior and finding proper abstra= ctions for it is
>=3B one of the core tasks in software engineering - = if not the single most
>=3B important task we do. It gives you
>= =3B
>=3B - reduced code size
>=3B - less errors during mainten= ance (if the same code appears n times=2C
>=3B you will have to fix a = bug or implement an extension of the
>=3B functionality in n locations= and can easily forget one).
>=3B - sometimes increased complexity>=3B
>=3B Kind regards
>=3B
>=3B robert
>=3B
&= gt=3B --
>=3B remember.guy do |as=2C often| as.you_can - without end<= br>>=3B http://blog.rubybestpractices.com/
>=3B
=
= --_ab484bfd-fd63-435c-bfde-4b4fb7a1e92f_--