• 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

design patterns and XP

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is your opinion on design patterns vs. XP programming? Do you believe that they conflict with each other, or is there a way we can take the best of both and try to integrate them. Do you cover the ideas/objections of XP to traditional design in your book?
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a great question and one I continue to work on. I wrote a tentative answer to it and have posted this on my web-site several months ago. Check out this link for an answer: http://www.netobjectives.com/xp/xpr_articles_dpxp.htm
The bottom line is: XP and Design Patterns definitely can live together, but they do impact each other's thinking. Remember, Kent Beck is an expert on patterns himself.
This continues to evolve a little and I will make an updated comment later this week.
------------------
Alan Shalloway,
Look for Jim Trott and my book: Design Patterns Explained
Visit our site Net Objectives.
 
Alan Shalloway
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was talking about UML and remembered something about how i use it and thought it relevent here as well.
I follow a very lightweight process, almost like XP. I use a high level UML conceptual model (one that just describes interfaces). I find this works better than XP's metaphor. It's still lightweight because the model doesn't take a lot of work. It's mostly just the interfaces involved and who uses them. However, it is much more meaningful than metaphor and can always work (unlike metaphor, which even by Ron Jeffries admission, only works some of the time).
I don't like using the UML to describe any implementation issues (like members of a class). I will show that in the code. Objects are supposed to be responsible for themselves so when looking from the outside of an object, the uml shouldn't show anything inside.
------------------
Alan Shalloway,
Look for Jim Trott and my book: Design Patterns Explained
Visit our site Net Objectives.
Visit our on-line companion to the book
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic