So we all have our weaknesses, right? ...or, at least, "areas for improvement" which ammount to the same thing. One of my many is naming. Mostly class...
... for ... Thank you for your reply. I believe it is the first, no? People seem to favor the name "Dictionary" over "Map." I don't know why, exactly. These...
... <Max.Guernsey@...> wrote: Well your reasoning makes sense about the dictionary thing... however to split semantic hairs with you.... when a map says 1->1...
... however to ... to ... to ... This is indeed my point. They are both maps but people seem to prefer the word "Dictionary" and dictionary terminology such...
... I would agree with that. Doesn't it still somewhat depend on the intended audience? A class library that is likely to be used by database guru's might...
... as "key" ... do ... to "look ... getting its ... those ... to ... but a ... Well... yes... and, again, that gets to the heart of the question. Using your...
http://www.netobjectivesrepository.com/TheVisitorPattern "...to be performed on the elements of an object structure" is taken to mean "effect the state of...
The second installment in my battery of questions pertaining to: http://www.netobjectivesrepository.com/TheVisitorPattern We all know about visitors that are...
Question #3 regarding http://www.netobjectivesrepository.com/TheVisitorPattern. Under the Cost-Benefit (gain-loss) section it says: "The coupling of the...
Pertaining to http://www.netobjectivesrepository.com/TheStrategyPattern In the motiviation section: "A single behavior with varying implementation exists" The...
This is pertaining to the Template Method Pattern (http://www.netobjectivesrepository.com/TheTemplateMethodPattern). What is the class-level equivalent of the...
... taken to ... *** Actually, it doesn't necessarily (or even primarily) mean state. It means the objects in a structure (possibly collection) where you need...
... Remember that the visitor should be used either where reflection is either unavailable (C++) or is too costly. Otherwise, the visitor is a way of...
... by ... however, ... of ... This isn't a "classic" template, but it does implement the intent using two strategies. In my mind, having code and asking what...
... It ... is ... previous ... organize ... is ... non- ... I'm not sure what you mean by a class level equivalent. Please clarify. Alan Shalloway CEO, Net...
... Really? So using a Chain of Responsibility and reflection to react to types in an object structure is not an implementation of the Visitor Pattern? Max...
... bbq ... Agreed and that's why I tried to frame the question first then added the code as a supplimentary example. I have a problem articulating things in...
Hi, Max, ... Note the intent of Visitor: We want to be able to add type-specific behavior to Visited later, without having to change Visited's interface. The...
... I'm not sure, either. The simple case is, as I said, when you have an implementation of the Strategy Pattern that uses a compositional implementation of...
... the ... vary ... like ... don't ... fills ... Don't worry about the implementation. Worry about what you are trying to accomplish. Strategy is about...
Let's use your example: Who would decide whether a Square was big or small? The Square, inside Square.Accept(Visitor)? That would work, of course... ......
All Patterns, and OO programming overall, is about communication and maintainability. Reflection tends to disguise things. Visitor Pattern does tend to add...
The latter interpretation is correct, though I have used the former interpretation when trying out a new (e.g., faster or cleaner) algorithm. I left the...
... Thank you, Alan. I'm not trying to convey implementation. I'm trying to convey intent using implementation. The intent is this: Have an object that...
... or ... could ... necessarily ... decide ... Freeing ourself from the technology for a moment, what if it was easy to add and remove methods and the...
In a way, what you've written is a Template Method. Is there a relationship between the selection of Step1 and Step2? They have to come from somewhere (e.g.,...
I love that analogy! And right before lunch! What chicken parmesian with shrimp in it instead? Take away the cheese now and use butter. Now take off the...