Design Patterns Hatching Tool

V

vnssoftware

Is there a design pattern hatching tool that can identify patterns
based on java source code being passed to it.

Anything similar to this would help. I want to USE patterns...and most
pattern books are somewhat boring when they start talking with s
specific example in mind. Also, its difficult to say OK I want to do
this so I should apply THIS pattern.

Is there a tool of any sort that can help. Any commercial tool- also
please mention.

Thanks in advance!!!!!
 
H

Harald Hein

vnssoftware said:
Is there a design pattern hatching tool that can identify patterns
based on java source code being passed to it.

It is called brain.
Anything similar to this would help. I want to USE patterns

Just wanting to use patterns is maybe the worst reason to use them. You
end up with a big overengineered heap of complex code.

Step one is to identify a problem. That's where you need your
brain. Step two is to evaluate possible solutions. One, or several such
solutions, might have been codified as patterns. This evaluation
of potential patterns and other solutions requires your brain, too.
And it requires that you have learned the patterns. Step three is to
adapt and implement the desired solution. Again, you need your brain.
...and
most pattern books are somewhat boring when they start talking
with s specific example in mind.

So you can't be bothered to learn something about patterns? Like a
care mechanic who is unwilling to add a bunch of screwdrivers to his
toolbox, because he doesn't like to learn when to use which
scredriver size and when to use a wrench instead. Too bad.
Also, its difficult to say OK I
want to do this so I should apply THIS pattern.

That's why you are supposed to use your brain. If you don't see the
need for applying a pattern, don't do it! It just blows up your code if
it doesn't fix a particular problem. If you can't name the problem, how
will you be able to select an adequate solution?
Is there a tool of any sort that can help.

Your brain.
Any commercial tool-
also please mention.

AFAIK one can't by a brain. One has to train it.
 
V

vnssoftware

So, the answer is there is no such tool. Also I was querying from the
prespective of code already there...solution already there..brain
already applied and I want to know which pattern did that brain
use..and I want to know this faster. I know brain could be the
answer...but patterns are something you can survive without
specifically knowing them. I may be reading code where some pattern is
used, and I can make out which one given the time...but can there be a
tool that helps in this. In the end my friend I was searching
something to help my brain, not to stop my brain.
 
B

brougham5

I want to USE patterns.

Patterns aren't magic. A pattern is simply a way of associating a name with
an idiomatic way of solving a particular type of problem that many people
have "resolved" on their own.

I'd suggest that rather than trying to get software to tell you what others
are doing in their code that you'd be better off studying and understanding
a good pattern book. I'd start with _Design Patterns_ by Gamma et al. Once
you're familiar with all the patterns in that book, move on to a different
one. Go through one a week. Pace yourself. Pay more attention to the
problems each pattern solves than the actual implementing code.
 
A

Adam Jenkins

vnssoftware said:
So, the answer is there is no such tool. Also I was querying from the
prespective of code already there...solution already there..brain
already applied and I want to know which pattern did that brain
use..and I want to know this faster.

So you want some software that can read the source code of an existing
program and automatically identify design patterns that were used?
That's like saying you want some software that can read a novel and
automatically identify which literary idioms were used. We're a long
way from having artificial intelligence that can do that. At this point
in time you just have to use your brain.
 
D

Dmitry R

Is there a design pattern hatching tool that can identify patterns
based on java source code being passed to it.

Anything similar to this would help. I want to USE patterns...and most
pattern books are somewhat boring when they start talking with s
specific example in mind. Also, its difficult to say OK I want to do
this so I should apply THIS pattern.

Is there a tool of any sort that can help. Any commercial tool- also
please mention.

Thanks in advance!!!!!

I used JAD long time ago, so now I know the patterns well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top