I may be wrong, but I think you should decorate the goo() method first, and then, in another decorator you should decorate the foo() method. Does this solve...
I urge you to check out Yahoo's new marketing policy: http://help.yahoo.com/help/us/privacy/privacy-23.html In particular, note this statement: In addition, we...
Here's a question I got off list: I am an owner of your book "Design patterns explained " and have a question for you. I like the Composite design patterns to...
... This is another reason factories are useful. Somehow you need to translate the internal composite structure to the external RDBMS and vice versa. I set...
Another option would be to use a data-binding framework. This allows you to marshal a graph of objects (in this case, a composite, but it could be any group...
Scott L. Bain
slbain@...
Apr 5, 2002 3:17 pm
188
If you're using the J2EE, composite & whole-part hierarchies, then CMP 2.0 is a solid way to go because it allows you to declaratively describe the...
Tom: No apology necessary for the recommendation of the core j2EE patterns book. First of all, it's a great book (serves a different purpose than mine)....
Hi: I just reading your DPExplained. I think it's a great book which could be expanded more in detail :) You mentioned about encapsulating at class-level via...
The difference between these two has nothing to do how well one insulates the client class from the implementations or variations. I think we've actually had...
Group, There seem to be inherent difficulties implementing an MVC-like framework for GUI applications, especially in light of the guiding rules set forth by...
Chad, The best exposition of MVC I've see is in "Pattern Oriented Software Architecture - A System of Patterns" aka POSA 1. Thanks to Alan for suggesting that...
Charlie ... Thanks for the suggestion. Actually, I believe we may have solved the problem offline here in the last couple of hours. The solution was to create...
Chad: Excellent job figuring this out. Sorry I didn't respond soon enough to help you. Charlie's recommendation of Pattern Oriented Software Architecture is ...
I was wondering about the options mentioned in the Field Notes Section (p.239). I am new to this but it seems that all of the options put age at the wrong...
Well the example lacks extensive detail. So in my opinion, age is a parameter that doesn't really fit anywhere into the example without taking the example...
Could someone point me to a resource with a better explanation of the decorator pattern. I feel that the examples in this book are unacceptable. The code...
... to ... in ... I was thinking that I would have one calcTax object for each country that would know how to calculate tax for all cases within that country....
... a ... When writing books, if we were to fully describe even a simple real- world problem, it would take forever. So you are right - i have left out many...
The confusion here might be that there is no one rule for who knows what is to be decorated. Look in your own problem domain where you want to use the...
... all ... country ... it ... to ... were ... (factory) ... I can see that using age to select rather than compute might produce too many sub-classes....
... Yes, this is exactly why I hadn't mentioned it. Note however, how the pattern gives us a way to look at the problem in a more conceptual way. Knowing we...
There is another, more extensive example of the decorator available at: http://www.netobjectives.com/dpexplained/dpe_olc_sup_pat.htm ...which is the online...
Scott L. Bain
slbain@...
Apr 30, 2002 4:26 pm
205
Are there any C++ examples? I don't know java to be honest with you. ... Explained. There ... decorator ... going to...
I would think with a few pointers (i'll give below) i don't think you'll have problems reading the code. The major differences between Java and C++ are: no...
... I had thought about explaining it that way, but references don't explain the need to do new on objects. This was one of the bigger challenges I had when i...
Alan, ... Yeah... me too. Still is in fact both for Java and C#. Fortunately, compilers tell me when I goof up. I started teaching C++ references before...
... mentioned. ... rather ... of ... (or ... which ... Of course, if you had started with the English version, You might have thought of it as depending on age...
I 've found this book by James Cooper quite interesting, will full examples (in Java). The Decorator pattern is also explained, but the java source is even...
I 've found this book by James Cooper quite interesting, will full examples (in Java). The Decorator pattern is also explained, but the java source is even...