Re: Seven Design Transformation Strategies

Adam Sroka <[email protected]> Thu, 11 Nov 2010 11:00:33 -0800
Newsgroups gmane.comp.programming.refactoring
Message-ID <[email protected]>
I believe this one came from Kent Beck. I don't have the exact quote
in front of me, but I'll attempt to paraphrase:

"If you see some duplication and you are not sure how to remove it,
first make it exactly the same, then it will be trivially easy to
remove."

On Thu, Nov 11, 2010 at 9:16 AM, Richard <[email protected]> wrote:
>
>
>
> In article <[email protected]>,
>
> Joshua Kerievsky <[email protected]> writes:
>
> > I recently posted a short piece about design transformation strategies that
> > may be of interest to folks following this list:
> > http://bit.ly/bZn42O
>
> I was following along nodding my head until I got to the last one:
>
> "Duplicate
>
> Duplicate anything that is only partially different
> to enable removing larger quantities of duplication."
>
> Since I really strive to eliminate duplication in code that I'm
> writing or refactoring, this one really gave me pause.
>
> Can you elaborate a little more on this principle? I *think* I know
> what you're talking about, but the amount of fuzz buzzing around my
> head when I think about this causes me to ask for clarification :-).
> --
> "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
> <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
>
> Legalize Adulthood! <http://legalizeadulthood.wordpress.com>
>
> 


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/refactoring/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/refactoring/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/