Trying to work from a motivation standpoint and going through previous posts Alan has specified "to see which pattern you use, look to the motivation. the...
Yes, I have seen the implementation provided. However each example I have seen of the factory pattern never seem to show any instantiation details for example ...
Sorry for multiple postings today. I have some free time and a lot of questions.. Can I ask a question regarding the depth of object hierarchies?? Say I have a...
A template pattern has a defined flow: step1 step2 step3 step4. You have a common procedure with different implementations of the different events. In a state,...
factories typically are sometimes unelegant (often so) because they deal with the special cases of what is being used. how are _you_ deciding which object to...
what you are describing is not an inheritance hierarchy but rather a composition one. You end up with deep compositions like this often enough. I don't think...
At the moment I pass a selection made by the user ( possibly from a drop down box ) via a controller object to the factory and have a select case within the...
Yes, I understand ( as I said initially ) that this is a composition hierarchy, however does this mean that each object within the hierarchy will have to have...
each object that can contain other objects (the nodes, not the leaves) have the addItem method. Alan Shalloway, Sr. Consultant, CEO office: 425-313-3065....
Hi, My Thanks to Alan for such a wonderful book. I was a novice in Object Orientation and now I can even debate with experienced designers on Design patterns. ...
Hi all DP users, I also want to thank Alan and Jim for this wonderful book. I'm a total beginner on DP (one week into the book DPE). Fresh out of college, I...
Uses vs. Has is largely a semantic difference, but sometimes there are syntactic differences as well. Take the Strategy pattern as an example: public class...
Scott L. Bain
slbain@...
Aug 6, 2002 11:35 pm
338
I have a couple of questions regarding the popular Singleton pattern. 1. Is there a clean way to initialize a singleton? I wouldn't want to pass...
Hi, While learning the DP, I was used to visit the following link which helped me to write some code, test and see how a Desing Pattern (say, State pattern)...
Hi, While learning the DP, I was used to visit the following link which helped me to write some code, test and see how a Desing Pattern (say, State pattern)...
An associate asked this question: I have a smart C programmer who wants to learn C++ or C# in a short period of time. The goal is to get that person enough...
Hello, My name is Sarah Sameen and I am a student of BS Fourth Year (Computer Science), at the Department of Computer Science, University of Karachi. I am...
I'd consider an investigation into the new features of C# (delegates, especially) and what implications they have in the design patterns as currently defined. ...
Scott L. Bain
slbain@...
Sep 24, 2002 5:16 pm
351
We've been doing Sequence Diagrams for several years now with no problems. Now we are moving into component based design with COM. DP Explained has been a...
Hi, In the Recommended Reading for the Java Programmers (p.316), it recommends the Patterns in Java, Volume 1, A Catalog of Reusable Design Patterns ...
Metsker's book is much better and I would recommend that one now. Alan Shalloway, Sr. Consultant, CEO office: 425-313-3065. mobile: 425-531-0810 Net...
Hi, I am reading the Bridge Pattern chapter, but I am still digesting the content. I know it is good to separate the abstraction from the implementation, but...
Is it because it is also published by Addison-Wesley? ;-) Just kidding. Could you explain how much better it is? Kev. ... suffering. ... accomplishing this ...
I pay no attention to publishers when suggesting books. I almost feel it is unfortunate that AWL has almost all of the best patterns books. This will likely...
Don't ignore the Smalltalk Patterns book. Yes I know it's not Java, but I find the examples are better explained than GoF. Greg Frank "Change is inevitable....
I think I understand the Abstract Factory and Factory patterns, but I have a couple of questions: 1. In C++, who is responsible for deleting the object...
There are many ways to control the objects created by factories. One way is to use smart references that count how many objects use them and have them ...