Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Engineering Concepts (http://www.go4expert.com/articles/engineering-concepts-tutorials/)
-   -   Design Pattern in Simple Examples (http://www.go4expert.com/articles/design-pattern-simple-examples-t5127/)

shabbir 18Jul2008 14:04

Re: Design pattern in simple examples
 
Quote:

Originally Posted by Dean-123
which do you think is most important when design a website?
i recently designed a new website:mytino(you can search it by google)can you give me some advices?
thank you!

Hey thats a too general thing to answer and it would be a classic case of solution probleming where you have a solution and trying to find the problem where it can be applied. I would suggest get your context out and then see which is the most fitting situation and see if you really need it and then apply.

Dean-123 21Jul2008 06:48

Re: Design pattern in simple examples
 
Quote:

Originally Posted by shabbir
Hey thats a too general thing to answer and it would be a classic case of solution probleming where you have a solution and trying to find the problem where it can be applied. I would suggest get your context out and then see which is the most fitting situation and see if you really need it and then apply.

thank you for your kindly suggestion,it's really useful!

ziad 23Jul2008 17:42

Re: Design pattern in simple examples
 
Shabbir great article, thanks very much!

I have a question regarding the strategy pattern. I think I understand it correctly and see the benefit of using it but my question is how will the correct implementation of the interface be instantiated? Would you have to use one of the creational design patterns?

Thanks again.

Ziad

yah 12Sep2008 07:29

Re: Design pattern in simple examples
 
hai..
i'm new in Design pattern using Java..
actually i try to find any topic in design pattern to my PHD..
any suggestion from you?
TQ

rmahmood 18Sep2008 13:33

Re: Design pattern in simple examples
 
Nice article with very simple examples. :)

It would be nice if you can share your knowledge to help me out.

I am working on an application where i have recorded ejb method calls with necessary information in XML files as they were called by j2ee client. Now i want to replay these recorded methods using Java reflection.

I am thinking about some design pattern that can be helpful. Important thing for me is
for every method being replayed i have to call ProcessBefore and ProcessAfter methods
to fix some contextual issues if there exist. It is not possible for me to know in advance
which methods will be recorded so that i can write concrete ProcessAfter and ProcessBefore for them.

Nikimathew 25Sep2008 10:13

Re: Design pattern in simple examples
 
Design pattern is a widely accepted solution to a recurring design problem in OOP a design pattern describes how to structure classes to meet a given requirement provides a general blueprint to follow when implementing part of a program does not describe how to structure the entire application does not describe specific algorithms focuses on relationships between classes
----------------
Nikimathew

puviyarasan 10Dec2008 11:36

Re: Design pattern in simple examples
 
It is really good article. Thank you very much.:)

annant 15Dec2008 16:47

Some Real world example with database
 
Can you pls provide me any good example of Abstract Factory pattern used in a project within database interaction. For example a project in Abstract factory pattern, which also has some database associated with it .

sanc.pec 1Jan2009 05:33

Re: Design pattern in simple examples
 
Hi ,
It was a superb collection of DPs.. Really very good man.
I ahve one scenario in my project, like the project is now on LIVE. A sudden requiremnt from customer requires some 400 different objects to behave in a single way. Like he needs a single object called "DOCUMENT" for all those 400 objects !! :crazy:

Object 1 ->
attr A
attr B

Object 2->
attr C
attr D

Now my DOCUMENT generic object should have
attr A
attr B

when he wants Object1

and similarly for Object 2 and other objects !!! What can be done ?????

shabbir 1Jan2009 10:11

Re: Design pattern in simple examples
 
Confused. Is there 2 type of object or one and if 2 type of object like to behave like one then you could probably change the class 2 to have internal implementation taken from object 1.


All times are GMT +5.5. The time now is 15:03.