Skip to Content.
Sympa Menu

gang-of-4-patterns - RE: [gang-of-4-patterns] I need help about GOF patterns

gang-of-4-patterns AT lists.siebelschool.illinois.edu

Subject: Design Patterns discussion

List archive

RE: [gang-of-4-patterns] I need help about GOF patterns


Chronological Thread 
  • From: "Navjot Singh" <navjot.s AT net4india.net>
  • To: <rajesh AT cs.iitm.ernet.in>, <gang-of-4-patterns AT cs.uiuc.edu>
  • Subject: RE: [gang-of-4-patterns] I need help about GOF patterns
  • Date: Fri, 7 Nov 2003 10:23:49 +0530
  • Importance: Normal
  • List-archive: <http://mail.cs.uiuc.edu/pipermail/gang-of-4-patterns/>
  • List-id: Design Patterns discussion <gang-of-4-patterns.cs.uiuc.edu>


>-----Original Message-----
>From:
>gang-of-4-patterns-admin AT cs.uiuc.edu
>[mailto:gang-of-4-patterns-admin AT cs.uiuc.edu]On
> Behalf Of
>rajesh AT cs.iitm.ernet.in
>Sent: Friday, November 07, 2003 10:14 AM
>To:
>gang-of-4-patterns AT cs.uiuc.edu
>Subject: [gang-of-4-patterns] I need help about GOF patterns
>
>
>Hello,
>
> I have been working on GOF patterns. How do people code the pattern
>functionality with out using pattern solution.Suppose , in case of builder
>pattern, how do we code it's functionality in java with out using the
>builder pattern solution.

so you want a pattern to code a non-patternized piece of code :-)

>For all GOF patterns, i need poor way of coding them.
may be you wanna run some comparisons. Code anything to solve a problem
*without thinking about reusability* of code & that would most probably be
non-patternized code.

>and also i believe that if there is only one solution for a problem (GOF
>patterns address) then that is pattern way of solving it. If there are
>more solutions and those any one of those solutions people code most of
>the time.

NO, there could be amny solutions to ny given problem BUT the most reusable
form of solution forms a pattern.

>
>My second doubt is:
>(in the contenxt of java )
>If a method is creating objects using constructors by hard coding them and
>a method (this is called from the method where objects are created) of an
>object is using the objects created through constructor statements then
>builder pattern can be used.

any creational pattern will do, depending upon use of created object.

>is it correct?
>
>Looking forward for ur reply
>
>regards
>rajesh
>
>
>
>
>
>--
>===================================================================
>
>
>"Genius is one percent inspiration and 99 percent perspiration."
> -- Thomas Alva Edison
>
>
>===================================================================
>
>
>_______________________________________________
>gang-of-4-patterns mailing list
>gang-of-4-patterns AT cs.uiuc.edu
>http://mail.cs.uiuc.edu/mailman/listinfo/gang-of-4-patterns
>





Archive powered by MHonArc 2.6.16.

Top of Page