Untangling the Gordian Knot
Currently working on a project to untangle a hairball project. Its quite tempting to cut the Gordian Knot, but we are working more slowly, following a pattern best described as encapsulate, delegate, deprecate, delete.
- self encapsulate fields and methods
- delegate to methods on the new untangled object and deprecate the old
- delete the old methods and fields
Anyone have any other patterns for this?
October 30th, 2002 at 8:19 pm
I don’t have a cool name, but I find that introducing ‘micro-interfaces’ works quite well in this situation. I’ve posted a bit more about it on my weblog: http://radio.weblogs.com/0111784/
-Darren
October 30th, 2002 at 9:44 pm
Componentization dude. Don’t forget Interface/Impl separation..
October 31st, 2002 at 12:03 pm
Componentisation. That’s the term I was looking for, in its anglicised form :)