File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF Design Patterns: UML

 
Michael Sullivan
Ranch Hand
Posts: 235
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many ways can we create an activity diagram, or a data flow? Are there any recognized patterns that will assist us in creating the UML for the design? Any handy UML samples that demonstrate some of the GOF design patterns?

Thanks!
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Michael -

How many ways can we create an activity diagram, or a data flow? Are there any recognized patterns that will assist us in creating the UML for the design? Any handy UML samples that demonstrate some of the GOF design patterns?


I'm not sure I understand all of your question, I'll tackle what I think you mean - please feel free to clarify

The book covers all 23 of the GoF patterns; 14 in great detail, and for each of these 14, UML diagrams are provided. The other 9 are covered very briefly, and in a few cases we have included UML diagrams.

In general, we use a kind of lightweight version of UML in our explanations - sticking to the high level basics.
 
Elisabeth Robson
author
Ranch Hand
Posts: 173
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What Bert said ... :-)

We do provide class diagrams for all of the patterns and most of the programs written in the book. Also, GoF has class diagrams, although they use another modeling language, not UML.

Elisabeth
 
Eric Pramono
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bert & Elisabeth,

Does your book discuss other Design Patterns other than the ones found in GoF book? What kind of approach does your book have in explaining each of the Design Patterns? I'm actually looking for a book which might help me find what pattern to use when facing a design problem, or when refactoring an existing code, especially with the more "not-so-obvious" patterns.

Do you have a link of the table of contents or sample chapter for us to take a brief look?

Thank you,

- eric
 
Elisabeth Robson
author
Ranch Hand
Posts: 173
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,


Does your book discuss other Design Patterns other than the ones found in GoF book? What kind of approach does your book have in explaining each of the Design Patterns?


No, we really focus on the GoF patterns, although we do include an in-depth discussion of Model-View-Controller as well, as it is comprised of three GoF patterns (Observer, Strategy and Composite). For some of the patterns, our approach is to derive the pattern from design principles, but for most we present a situation where the pattern can solve a problem. We really try to show a problem or challenge as the context in which to explain the pattern, so you'll see just why that particular pattern solves that problem. We don't discuss refactoring per-se, however, we do show how problems arise in programs and how to change the program to incorporate the pattern and solve the problem. For instance, an good example of this is the State Pattern chapter. We show a perfectly resonable solution to the challenge posed at the start of the chapter (to build a gumball machine), and then show how, when requirements change, the State Pattern can help deal with a growing program that needs to be flexible and change.


Do you have a link of the table of contents or sample chapter for us to take a brief look?


This page has a link to both the table of contents and a sample chapter, Chapter 3 (The Decorator Pattern).

Elisabeth
 
Eric Pramono
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Elisabeth,

I'll try to read the sample chapter tonight, and hopefully I can come back later to ask more questions.
Thank you again,

- eric
 
Michael Sullivan
Ranch Hand
Posts: 235
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bert, Elisabeth,


Looks like I left off a sentance in there, but somehow you understood what I was asking (and answered, thanks!). I was really probing to see if HFDP contained a general UML way to describe the various design patterns. Sort of a template that could describe the components and direction that the pattern follows. I'm sort of a big "show me where we are going upfront" type of person, and the UML is a good roadmap for me.

Thanks!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic