Someone asked me this and I thought the question was good and that I'd answer it here. Alan, I purchased your book and have read up to and through the bridge ...
For my own part, I am a Java programmer only (no C++ here), and I tend to use Abstract classes whenever I have a single parent-child relationship, even if I...
Scott L. Bain
slbain@...
Dec 5, 2001 3:11 pm
70
Good points (glad you work here :) I'll also point out that the affects of the lack of default behavior hasn't really been noticed yet in Java. From the...
Good points. Here's my Interface spiel: Sometimes a thing "is" more than one thing. Take me, for instance. I am a programmer, a teacher, a writer, a parent,...
Scott L. Bain
slbain@...
Dec 5, 2001 3:40 pm
72
One of the reasons I am interested in learning Python is that it avoids this by not having strong typing. Bruce Eckel, in informal talks we've had, said that...
Someone asked me this and thought I'd post it here: " Consider this scenario. 1. All the methods in a class are static. 2. We use singleton pattern. I believe...
Stating the obvious: if the class is to have any data members, then of course it must be singleton. So if there's any possibility that the class would need to...
Maybe I'm just displaying my ignorance here (wouldn't be the first time), but I don't understand why having data members would force you to use a Singleton. ...
Hi everyone. I have decided to develop more materials on patterns and make them available on-site. I want to "study" a pattern on about a monthly basis. What...
I've almost finished the translation of it. This is a good book. It gave me something new. But it's too short to explain these materials. And there's lots of...
Vassilis: Thanks for voting. When you say 'factory' do you mean the factory method? There are many factory patterns. The notion of a factory itself is a ...
It's looking like the Bridge Observer and Visitor so far. Bridge stands in front with 4 first place and 1 second place votes for 14 points. Then the observer...
This question indirectly relates to design patterns, but is at a lower level of design that I thought might be appropriate for this group. In this problem...
Brian: I am a little confused here. It sounds like you have one method in the interface: doAction( action) Does the calling routine not know the action it is...
Sorry to confuse you on this, but I will try to clear things up here. I didn't mention the whole problem because it's a bit lengthy and I thought I could just...
Brian: That adds some other pieces of information. The thing is, patterns are really about relationships between classes. In this case, there is the question...
OK, we'll be studying the bridge pattern this month. To get us started, everyone should read the bridge chapter of my book. You can get this on-line at ...
Neil asked: I was wondering what the status is of the discussion of the Bridge pattern? I'll be writing up something on the bridge and posting it later this...