On breaking an interface contract

Martin Fowler has posted an interesting post on how changing an interface can be seen as a refactoring: 

Is Changing Interfaces Refactoring?

The answer to this question is pretty simple – changing an interface is a refactoring providing you change all the callers too

Sometimes you can’t change the callers for the simple reason you don’t know all of them. That’s why most of the times changing an interface really isn’t a refactoring.

Technorati Tags: refactoring

Related Posts (generated)

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Switch to our mobile site