|
Posted by Sanders Kaufman on 08/25/07 03:24
Jerry Stuckle wrote:
> No, refactoring is changing the implementation without changing the
> interface.
>
> IOW, you change HOW you do things, but not WHAT you do. You changed the
> interface.
>
> An example of refactoring would be to change a class so that it gets its
> data from a relational database instead of a flat file. The function
> calls (interface) remain the same, but the code in the functions
> (implementation) changes.
>
> Refactoring in OO would mean you would not have to change anything
> outside of the class itself.
Ahh - so when I had to use new kinds of parameters - I was rewriting.
But if I'd made it all zero-impact on how it's used, it would have been
refactoring.
I don't get it. I can repeat it and rephrase it. But I don't get it.
Navigation:
[Reply to this message]
|