| 
 Posted by Dikkie Dik on 08/25/07 11:52 
> 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. 
 
<snipped more incorrect stuff> 
 
> Refactoring in OO would mean you would not have to change anything  
> outside of the class itself. 
 
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.
 
  
Navigation:
[Reply to this message] 
 |