sorry for slow reply - I've been out of the office with surgery. The GoF book is the first in the "Software Pattern Series" by Addison-Wesley. The Smalltalk...
page not found ... From: kjwrvrejhfts To: dpexplained@yahoogroups.com Sent: Monday, October 14, 2002 7:33 PM Subject: [dpexplained] just found this great site!...
first of all my deep respects to authors for what they have done.It is hard to find a book in which auhtors have gone to explain the practical job problems...
Figure 15-6 (DecoraTor objetc diagram) confused me.So until I had to actually go through an example in C# which atually showed me the power of Decorator...
The more I looked at the design pattern web page (Additional info for chap 16) which says DCL (double checked locking) pattern does not work in Java I am...
The problem is in the JVM but also shows up in C# and C++ due to optimizations. The problem is the "new" will return before the constructor actually completes....
I have read DCL works fine in C#, which should mean it would work in any .NET language with the enabling syntax, since .NET languages share a common language...
Tom: Thaks. I couldn't read the reference however. I have it on great authority (Microsoft staff) that DCL in C# _is_ broken, but there are workarounds. ...
Alan, It seems to me that double checked locking as originally implemented was an exploitation of an implementation feature of some java vms. Of course, I'm...
Alan, Strange. I mention the web site and it goes down. Here's the code cited, saying DCL works in C#: C# Code /* Used to lazily instantiate a singleton class...
Alan, ... You can google csharpvsjava and look at the cached page. I haven't had time to read it yet, however. ... Interesting. I've always called this an...
I use the words pattern and design-pattern interchangeably in the context of developing software because I think the term "design-patterns" is a mis-nomer and...
small mistake: The public Helper getHelper had better be static or else you never can call it. Anyway, this is the standard DCL and although I've not tried it,...
There may be some ameliorating effect achieved by declaring the member to be "volatile", as this will limit the optimization done by the compiler ("reads and...
Scott L. Bain
slbain@...
Oct 22, 2002 11:22 pm
393
Are'nt delegates and event handlers in .net, conceptually fall under observer pattern, though their implemenation differs? OR Are they (delegates and event...
Patterns in the Alexandrian sense, are _never_ about an implementation. Rather an implementation is always a part of the pattern. Patterns are about the...
Multicast delegates when declared using the event keyword are decidedly implementations of the observer pattern, IMHO. There *are*, I think, unique delegate...
Scott L. Bain
slbain@...
Oct 26, 2002 8:05 pm
396
wne declared as events, I agree. But delegates are not _always_ observers. Alan Shalloway, Sr. Consultant, CEO office: 425-313-3065. mobile: 425-531-0810 Net...
We agree, though I'd say *multicast* events specifically. I think events can be multicast, or have a return type (actually, I'll have to try that). -S- ... ...
Scott L. Bain
slbain@...
Oct 26, 2002 8:46 pm
398
... I never could understand the concept of 'Forces' and 'Context'. I have read that over and over again in a lot of places, but just couldnt understand. I...
When we say "context" we mean what are the background issues involved. It doesn't make sense to talk about having a customer object, say, unless you know what...
Hi, It appears to me that the purpose of the two-way adapter is to expose the methods originally in the adaptee's interface also via the adapter. This would...
I think the GoF are giving you different ways a class adapter can be used. Alan Shalloway, Sr. Consultant, CEO office: 425-313-3065. mobile: 425-531-0810 Net...
Hi I think "Timeless way of building" is a very good book.I just finished reading few chapters of it.This book probably applies to our lives as well Here is an...
Alan, ... I'm not sure it's come to mean that in the non-Java world - but I could have missed the memo. :-) ... depends ... here ;) I've seen a few attempts,...
Charlie: You're talking about scale of the patterns. I'm talking about the precision or implementation specific part of the pattern. In other words, a...
Alan, Hmmm... I've always understood the description of Strategy in the GoF book - or yours for that matter - to be an _example_ of the Strategy pattern rather...
Charlie: That's what I mean. Using an object passed in as described in the book is just an example of how to implement the pattern. The strategy pattern ...
So it sounds like we agree. We just didn't know it. :-) Charlie ... http://docs.yahoo.com/info/terms/ ... To unsubscribe from this group, send an email to: ...