The code doesn't appear to correspond to the class diagram in fig 4-3. Eg, the myModel = V2OpenModel(modelName) constructor is not shown in fig 4-3 class...
designpatternsxplaine...
Sep 1, 2001 10:54 am
20
Thanks for your question. The problem is that we're not trying to make the code and the model match at the same level of perspective. We believe class models...
Alan Shalloway
alshall@...
Sep 1, 2001 2:14 pm
21
Hi all: I just completed a public Pattern Oriented Design: Design Patterns From Analysis to Implementation course here in the Seattle area. I had...
alshall@...
Sep 3, 2001 7:11 pm
22
Dear Alan, Thanks for replying. I also feel your book is by far the clearest treatment on Design Patterns. Having said that, i hope you can help me: Question 1...
designpatternsxplaine...
Sep 4, 2001 11:53 am
23
Paul: Thanks for the book corrections - you are right regarding the example code. Regarding the ApControl, I was illustrating one of several ways of ...
alshall@...
Sep 4, 2001 12:48 pm
24
... I would agree that this is certainly encapsulation of a kind. It's "data hiding", certainly, and (if I understand the javascript I am seeing here), also...
Scott L. Bain
slbain@...
Sep 14, 2001 4:31 pm
25
Just want to throw out a point about inheritance. In the "standard" way of viewing inheritance, it is used for specialization. In other words, I have...
alshall@...
Sep 15, 2001 5:58 pm
26
I was asked the following question: "I am using your book on design patterns and noticed the following thing regarding Example 17-1, page 270. The constructor...
alshall@...
Sep 19, 2001 2:35 pm
27
I was asked about if there was any information about design patterns that are not specific to the object oriented approach. I am not aware of any, if someone...
alshall@...
Sep 20, 2001 11:31 pm
29
Marco Papacchini sent me this link about design patterns for non object-oriented design. http://www.geocities.com/SiliconValley/Lab/6888/prpats.htm Some other...
alshall@...
Sep 23, 2001 4:35 pm
30
Hi folks Thought you might be interested in some reactions to the issue of non-OOD patterns from someone who has just be down that road, and who is using some ...
Geoff Caplan
geoff@...
Sep 26, 2001 10:41 am
31
Overall I agree with a lot of Geoff's comments about OO vs non-OO. However, there are some differences and a few points I would like to make. I think the...
alshall@...
Sep 26, 2001 1:52 pm
32
Hello Geoff, the part of my message you mentioned was a personal off-line communication to Alan, erroneously reported on-line in this mailing list. I agree:...
Marco Papacchini
marco_papacchini@...
Sep 26, 2001 3:27 pm
33
Marco Thanks for writing. I am sorry if my comments were unfair - if English is not your first language, it is easy to make subtle mistakes and be ...
Geoff Caplan
geoff@...
Sep 27, 2001 10:39 am
34
In chapter 9 "Bridge Pattern", you imply on page 133 (by asking a set of questions) that the design you diagrammed in figure 9-3 suffers from redundancy, low...
bruce_e_robbins@...
Oct 5, 2001 8:12 am
35
Sorry for the delay in answering this. See my embedded answers beginning with **** ... set ... the ... cohesion ... 3. ... *********** Yes, that's exactly the...
alshall@...
Oct 10, 2001 10:49 pm
36
With regards to Double Checked Locking Pattern, there are articles being published which tell that this pattern does not work for Java. because of Java's...
Chetan, The two ways I've seen are to: (1) Synchronize the getInstance() method (which the double-checked locking technique was trying to avoid). (2)...
It seems that the java code fragment listed in your book at page 261 needs some correction. The correction which I think are needed are listed as part of code ...
The question on the second approach is would separate threads still get one instance of the same object? I'm not sure. I'll dig around a little on this one. ...
Alan, Here's an example of what I'm referring to as the 2nd technique: public class Singleton { private static final instance = new Object(); public static...
... http://www.javaworld.com/javaworld/jw-02-2001/jw-0209-double.html ... __________________________________________________ Do You Yahoo!? Make a great...
I think the lazy instantiation would work. My concern is that since this whole problem is that there is an error in the synchronization code of the JVM, are...
Alan, Thanks for the prompt response. Checked out the link you had sent. The code now looks perfect. But just a quick question. Am curious to know to whom does...
I received this question off-line so I'm posting it anonymously here: Question: While reading your book on Design Patterns, I came upon a piece of code that...
Hello! Everybody! I'm the Chinese translator of the book "Design Patterns Explained". And I want to study more here. Please give me some help and advice....
What type of help and advice are you looking for? Perhaps you could tell us the questions you have, so that we may understand what type of help you need. Best...