Re: Diamond back refactoring (again, I know...)

From: Johnny Elvers (johnny_at_elvers.dk)
Date: 09/23/04


Date: 23 Sep 2004 11:41:28 -0700

On 23-09-2004 Jim Cooper wrote:

>
>Extract Method is the most important one, IMO. I know there are a lot
>Corbin would like to do, so we'll have to see.
>

Agreed.

Especially when writing libraries renaming in a non local scope is more
damaging than useful. Extracting a method will by default occur on a
local scope and be of no harm in that context.
The first two class level refactorings I mentioned, "Extract SubClass"
and "Extract SuperClass", are potentially harmful as well. The extract
ancestor class should be safe though.

Even so I must say I find renaming quite useful, in a non library
context, since classes are merely specialized fragments of a greater
whole and thereby easily subject to change (if just by name).

Regards,
Johnny

-- 
Experience is that marvelous thing that enables you to recognize a
mistake when you make it again.
- Franklin P. Jones


Relevant Pages

  • Text Parser Help Please
    ... a context and starts with the @ symbol. ... hash key for the task. ... I gues the best way might be to extract each marker assin it to a hash ...
    (comp.lang.ruby)
  • Re: Space travel is no longer SF
    ... Why not just use the energy you were using ... to extract it for heating whatever it was you wanted the fire to heat? ... the failure temperature of the fuel elements. ... The original context, however, was glass-making. ...
    (rec.arts.sf.written)
  • Re: xfs bug in 2.6.26-rc9
    ... just extract the extent map outside the context of xfs_fsr? ... It's run twice without any errors now, so I guess I can't reproduce it anymore. ...
    (Linux-Kernel)
  • RE: Fast attribute/list item extraction
    ... >>Peter's post focused on implementation instead of the context. ... > argument that encapsulates ... extra sort param, ... the extract() implementation looks fine. ...
    (comp.lang.python)
  • =?utf-8?B?UmU6IOS4iuOBjOOCiuODu+S4i+OBjOOCig==?=
    ... and I might even have it backwards. ... I don't have much context - I'm translating an extract of an extract. ... communications between the client to the server. ...
    (sci.lang.japan)