• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apply Patterns Gently: Refactoring to Patterns

 
author
Posts: 608
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One of Agile Modeling's practices is Apply Patterns Gently (
http://www.agilemodeling.com/practices.htm#ApplyPatternsGently ). This
idea came from Josh Kerievsky's original paper presented several years ago
at the XP conference in Italy. The basic concept is that developers should
consider easing into the application of a pattern, to apply it gently. This
reflects the value of simplicity. In other words, if you SUSPECT that a
pattern applies you should apply it in such a way as to implement the
minimal amount you need today but that makes it easy to refactor it later
when it is clear that applying the full-fledged pattern is in fact the
simplest approach possible. In other words, don't over model. For example,
you may recognize a good spot in your design to apply the GoF's Strategy
pattern, but at the current moment you only have two algorithms to
implement. The simplest approach might be to encapsulate each strategy in
its own class and build an operation that chooses them appropriately and
passes them the appropriate input. This is a partial implementation of
Strategy that leaves you in a position to refactor your design if more
algorithms need to be implemented, yet does not require you to build all
the scaffolding that Strategy requires -- an approach that enables you to
ease into application of the pattern.


Anyway, as many of you know Josh has been doing really good work on this
concept and his book Refactoring to Patterns
(http://www.amazon.com/exec/obidos/ASIN/0321213351/ambysoftinc/ ). I've
been reading it over the past couple of weeks and have been very
impressed. This book is going to become one of my key reference books. If
you're serious about agility I highly recommend it.


- Scott
 
Ranch Hand
Posts: 1759
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's great to know the book is out. We have been following his work for some time.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And the best part is that Joshua is coming for a promotion in this very forum in a couple of weeks
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
=I suspect most in our universe will want to order this book, if for no other reason because of the all-star lineup on the back cover praising it! (http://www.amazon.com/exec/obidos/tg/stores/detail/-/books/0321213351/reviews/002-5080181-7646450#03212133513200)
 
Look! It's Leonardo da Vinci! And he brought a tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic