wood burning stoves 2.0*
The moose likes OO, Patterns, UML and Refactoring and the fly likes HF Design Patterns: UML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "HF Design Patterns: UML" Watch "HF Design Patterns: UML" New topic
Author

HF Design Patterns: UML

Michael Sullivan
Ranch Hand

Joined: Dec 26, 2003
Posts: 235
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

Joined: Oct 14, 2002
Posts: 8803
    
    5
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.


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Elisabeth Robson
author
Ranch Hand

Joined: May 14, 2004
Posts: 173
    
    6
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


Co-Author of Head First JavaScript Programming
Eric Pramono
Ranch Hand

Joined: Jul 09, 2001
Posts: 74
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

Joined: May 14, 2004
Posts: 173
    
    6
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

Joined: Jul 09, 2001
Posts: 74
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

Joined: Dec 26, 2003
Posts: 235
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HF Design Patterns: UML
 
Similar Threads
part II
What technologies or tools or frameworks or APIs are must for SCEA?
Cleared SCEA 5 All levels
Design Pattern - UML What is the Relation ship?
Designs