Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

THE list of patterns

 
Ryan McGuire
Ranch Hand
Posts: 1057
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Warren Dew
blacksmith
Ranch Hand
Posts: 1332
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gerald Davis
Ranch Hand
Posts: 872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gerald Davis
Ranch Hand
Posts: 872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you dig it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic