File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes THE list of patterns 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 "THE list of patterns" Watch "THE list of patterns" New topic
Author

THE list of patterns

Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 1007
    
    3
If one were making some kind of reference describing various design patterns, which ones do you think should be included? I'm not talking about an unabridged catalog of every pattern ever decsribed. Let's say the resource is attempting to describe the patterns that would get a developer through 95% (99%?) of the most likely situations.

Would you include all the ones from the Gang of Four just because they are the canonical ones? What ones have proven themselves to be worthy? Also are there more basic ones that the GoF book takes for granted that deserves more in-depth treatment? e.g. the "Pool".

And lastly, are there domain-specific patterns that the "average" developer is likely to encounter and should be covered?

(I know this is similar to discussion of which pattern to "vote off the island", but it also includes which ones to add.)

Ryan
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
I'd be sure to look at Sun's J2EE patterns, too. Some of them only apply to distributed or stateless server systems, but there is a lot of good stuff in there.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Warren Dew
blacksmith
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
    
    2
Ryan McGuire:

If one were making some kind of reference describing various design patterns, which ones do you think should be included? I'm not talking about an unabridged catalog of every pattern ever decsribed. Let's say the resource is attempting to describe the patterns that would get a developer through 95% (99%?) of the most likely situations.

99%? I'd just use Gang of Four as the reference.

95%? I'd reduce it to just the typesafe enum and the singleton.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
There are only few GoF patterns I wouldn't miss.

Null Object and Typesafe Enum are also must haves to me.

An analysis pattern that I used with quite some success (and which has a wide applicability) is the Quantity pattern.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Gerald Davis
Ranch Hand

Joined: May 15, 2002
Posts: 872
EJB good programming practices are good design patterns. In most EJB books they recommend the use of stateless session beans and condom the over use of stateful.
I use EJB good programming practices for non distributed system.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
As a server-side developer, and as someone who likes to keep a clean separation of layers and writing reusable objects, I like Business Delegate, Session Facade, Data Access Object and Data Transfer Object.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Gerald Davis
Ranch Hand

Joined: May 15, 2002
Posts: 872
Can you dig it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: THE list of patterns