Mar 06, 2011
There is no direct relation of Refactoring patters (RF) with GOF Design Patterns (GoF). In general correct usage of GoF design patterns may to some extent reduce the code smell (overuse may have the side effect).
But Refactoring patterns are more at a basic level like
- Extract interface
- Extract Parameters
- Encapsulate Field
- Replace constructor with Factory Method (GoF Factory Method)
- Replace Magic Number with Symbolic Constant
- Rename Method
- Substitute Algorithm (GoF Strategy)
- AND MANY MORE.....
Adhering to basic GoF and related patterns like MVC, MVP etc follows some of the above high level objectives, but refactoring includes lots of low level code activity as well as can be gauged from the above list.
Hope this helps.