• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

design patterns

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,
I have set of java classes, for instance 100 java classes,in all these one design pattern is there.I don't know which one is design pattern.I want to know which one design pattern in all these classes.Is any specific features are there for to recognise the design pattern.Kindly tell me.

thanks & regards,
Babu.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this a treasure hunt ? That's a strange question you've got here !
The quickest way to recognize some patterns would be to look at some class diagrams, to check the raltions between interfaces and concrete classes. If you're accustomed to patterns, you might recognize some. Also, some methods could give hints, like "getInstance" for a Singleton, or "createSomething" for a Factory. But as there's no pattern specification (only guidance), this is not 100% true. So I'd say that there's no specific features to recognize patterns, except class relationships and participants.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do you know that there is exactly one design pattern in there?
 
A Babu
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I dont know how many design patterns are there.Just for example i am saying.just assume that.

regards,
babu.
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I think the only reliable way is to have someone who knows design patterns have look at and understand the code. Perhaps some class names might give help.

The "problem" is that many patterns look very similarly in structure - the mainly differ by intent.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic