gang-of-4-patterns AT lists.siebelschool.illinois.edu
Subject: Design Patterns discussion
List archive
[gang-of-4-patterns] Fw: [patterns-discussion] Messaging Design Pattern and transparent access to distributed components
Chronological Thread
- From: phillip henry <ph1ll1phenry AT yahoo.com>
- To: ipc-patterns AT cs.uiuc.edu, dacm-patterns AT cs.uiuc.edu, siemens-patterns AT cs.uiuc.edu, gang-of-4-patterns AT cs.uiuc.edu, business-patterns AT cs.uiuc.edu
- Subject: [gang-of-4-patterns] Fw: [patterns-discussion] Messaging Design Pattern and transparent access to distributed components
- Date: Tue, 18 May 2010 14:49:19 -0700 (PDT)
- List-archive: <http://lists.cs.uiuc.edu/pipermail/gang-of-4-patterns>
- List-id: Design Patterns discussion <gang-of-4-patterns.cs.uiuc.edu>
Actually, don't know what happened to my original post.
I thought I replied to Messaging Design Pattern but it appears to have been sent to dsheppard2k AT yahoo.com.
My apologies to Mr/Ms Sheppard.
Phillip
I thought I replied to Messaging Design Pattern but it appears to have been sent to dsheppard2k AT yahoo.com.
My apologies to Mr/Ms Sheppard.
Phillip
----- Forwarded Message ----
From: phillip henry <ph1ll1phenry AT yahoo.com>
To: Messaging Design Pattern <dsheppard2k AT yahoo.com>
Sent: Tue, May 18, 2010 10:44:40 PM
Subject: Re: [patterns-discussion] Messaging Design Pattern and transparent access to distributed components
From: phillip henry <ph1ll1phenry AT yahoo.com>
To: Messaging Design Pattern <dsheppard2k AT yahoo.com>
Sent: Tue, May 18, 2010 10:44:40 PM
Subject: Re: [patterns-discussion] Messaging Design Pattern and transparent access to distributed components
Hi, Ed,
Thanks for getting back to me so promptly.
> We don't believe type safety is really an issue
I'm afraid that you may be in a minority.
> DAO or iterator to give you a couple of examples
How is the DAO pattern not type-safe?
And doesn't Java use type-safety for it's Iterator (at least in JDK 1.5+)?
> The implementation needs to handle any type of object
Can you not achieve this with generics (eg, as in the Java API for java.util.Iterator)?
I'm afraid that I don't believe that the JtInterface interface that has just one method:
java.lang.Object processMessage(java.lang.Object message)
constitutes a pattern.
I did take a look at the JT framework. My main concern is that JT is trying to implement patterns for me. I believe this misses the point of what patterns are for. No framework can possibly know exactly what I am trying to do.
If you take the Jt.JtStrategy class, for instance, how can this implement the Strategy Pattern for me if it doesn't know what particular problem I am trying to address? It can wrap my unit of work and give me a generic interface, for sure. But it lacks type-safety and replaces my self-describing method name with processMessage.
How is my code any richer for this?
Regards,
Phillip
From: Messaging Design Pattern <dsheppard2k AT yahoo.com>
To: phillip henry <ph1ll1phenry AT yahoo.com>
Sent: Tue, May 18, 2010 3:24:27 PM
Subject: Re: [patterns-discussion] Messaging Design Pattern and transparent access to distributed components
Thanks for getting back to me so promptly.
> We don't believe type safety is really an issue
I'm afraid that you may be in a minority.
> DAO or iterator to give you a couple of examples
How is the DAO pattern not type-safe?
And doesn't Java use type-safety for it's Iterator (at least in JDK 1.5+)?
> The implementation needs to handle any type of object
Can you not achieve this with generics (eg, as in the Java API for java.util.Iterator)?
I'm afraid that I don't believe that the JtInterface interface that has just one method:
java.lang.Object processMessage(java.lang.Object message)
constitutes a pattern.
I did take a look at the JT framework. My main concern is that JT is trying to implement patterns for me. I believe this misses the point of what patterns are for. No framework can possibly know exactly what I am trying to do.
If you take the Jt.JtStrategy class, for instance, how can this implement the Strategy Pattern for me if it doesn't know what particular problem I am trying to address? It can wrap my unit of work and give me a generic interface, for sure. But it lacks type-safety and replaces my self-describing method name with processMessage.
How is my code any richer for this?
Regards,
Phillip
From: Messaging Design Pattern <dsheppard2k AT yahoo.com>
To: phillip henry <ph1ll1phenry AT yahoo.com>
Sent: Tue, May 18, 2010 3:24:27 PM
Subject: Re: [patterns-discussion] Messaging Design Pattern and transparent access to distributed components
Phillip, There were several changes made to the paper based on comments received (asynchronous information). We don't believe type safety is really an issue. Many design patterns use Object for their implementation because the problem addressed is general in nature. DAO or iterator to give you a couple of examples. The implementation needs to handle any type of object. It is the same in the case of messaging. Any type of message needs to be handled. On the other hand, the implementation is not that vital when compared with the pattern/concept of messaging itself. The messaging concept is the main aspect. By the way, the type may be restricted (during implementation) to accommodate type safety. There may better implementations depending on specific requirements. Regards, Edgar --- On Sat, 5/15/10, phillip henry <ph1ll1phenry AT yahoo.com> wrote:
|
- [gang-of-4-patterns] Fw: [patterns-discussion] Messaging Design Pattern and transparent access to distributed components, phillip henry, 05/18/2010
Archive powered by MHonArc 2.6.16.