• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

THE list of patterns

 
Bartender
Posts: 1205
22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
blacksmith
Posts: 1332
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 872
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you dig it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic