Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classification of Design Patterns

 
Jithu Joijoide
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I want to know which is the best way to classify the Design patterns. How exaclty Design Patterns are grouped.
Thanks in advance
Jithu
 
Laojar Chuger
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the GOF book, which is classic and authoritive source for the design pattern.
 
Sanjeev Arya
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jitender
I am not sure what angle you are looking at:
Abstractly speaking, GoF should help you like someone else has already pointed out. You can satisfy your hunger in a few seconds at a local bookstore because the patterns are neatly categorized in the inner flap of the book itself (back of the cover) so you don't have to even browse inside if that's all you need. Major categories are structural, Creational, Behavioral, etc...
If you are interested in more implementation oriented aspects, I have even seen something like "EJB Design Patterns" at the Sun java site.
cheers
Sanjeev
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would suggest you go for GOF book along with a Java Design Patterns - A Tutorial.It compliments GOF so well
-- Sandeep
 
Sanjeev Arya
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Jitender,
My 2 cents... A guru on patterns told me that all Java patterns books "miss the whole point" very badly. This is current as of 2 weeks ago. I am not denouncing any recommendations others have made in this thread or others, just telling you one guru's opinion which guided me when I was searching for pattern books. His only recommendation till date is GoF. I have used it and it is definitely neat and to-the-point.
I generally browse the book at the bookstore and read amazon's reviewer comments before buying it. Its amazing how true and well-researched are "most" of the reviews at the amazon site.
Hope it helps.
Sanjeev
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also suggest you go through Java Design Patterns Vol. 1 and Vol 2 by Mark Grand.
-- Sandeep
 
Avijeet Dash
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is a valid question and deservs some thought.
I have thought about it and many a time i want better ways of categorization.
creational, structural and behavioural is the common way depending on the nature of the patern.
the other way is looking where the pattern fits in the application tier, like presentation, workflow, data model related patterns. this is even better from a developer prespective.

the other way of classifying would be based on simillarities among the patterns, like many patterns suggest composition over inheritance. many patterns have simillar object heirarchy and collaboration with tricky differences. this classification is also helpful from memorizing patterns prespective.

there can be other better ways, can you guys do some educated guesses.

 
Jithu Joijoide
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
Thanks for every one for sending me useful info. Iam very much pleased with Avijeeth Dash 's reply. because i was thinking about different ways to organize patterns other than what the GOF says. So if some one has anyother idea , can u please come up with it ?
Thanks
Jithu
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic