Interlude 3 . Design Patterns


Interlude 3. Design Patterns

I3.1. Patterns
  • Abstract Factory : Replace Constructor with Factory Method (several times)

  • Factory Method : Replace Constructor with Factory Method

  • Flyweight : Remove Setting Method, Change Value to Reference

  • Interpreter : Extract Method and Move Method (from Composite)

  • Observer : Separate Domain from Presentation, Duplicate Observed Data

  • State : Replace Type Code with State/Strategy

  • Strategy : Replace Type Code with State/Strategy

  • Template Method : Form Template Method

Joshua Kerievsky is working on a book about this subject called Refactoring to Patterns; perhaps it will be available by the time you read this.




Refactoring Workbook
Refactoring Workbook
ISBN: 0321109295
EAN: 2147483647
Year: 2003
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net