|
Posted by Sanders Kaufman on 08/26/07 00:58
Dikkie Dik wrote:
>> No, refactoring is changing the implementation without changing the
>> interface.
>
> Please read the book before you utter nonsense.
>
> Refactoring is changing the _structure_ of the code without changing the
> _behaviour_ of that code. So interface changes can be refactorings.
Actually, refactor is a mathematical principle whose definition doesn't
even *address* the programming world.
> I think you confuse with the Open Closed Principle. The Open Closed
> Principle and refactoring are perpendicular ways to adapt code in a
> _controlled_ fashion: The Open Closed Principle leaves the structure
> intact, while refactoring makes sure the code behaviour remains the same
> while you are restructuring it.
Perpendicular... Open Closed Principle... blecchh.
Might just as well call them the Democrat, Libertarian and Republican
methods - for all the clarity it brings.
Navigation:
[Reply to this message]
|