... It ... is ... previous ... organize ... is ... non- ... I'm not sure what you mean by a class level equivalent. Please clarify. Alan Shalloway CEO, Net...
34
Max Guernsey, III
maxguernseyiii
Dec 13, 2007 6:44 pm
... 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...
35
Max Guernsey, III
maxguernseyiii
Dec 13, 2007 6:47 pm
... 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...
36
Rob Myers
xyphrnld0x
Dec 13, 2007 6:57 pm
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...
37
Max Guernsey, III
maxguernseyiii
Dec 13, 2007 6:58 pm
... 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...
38
Alan Shalloway
alshalloway
Dec 13, 2007 7:06 pm
... the ... vary ... like ... don't ... fills ... Don't worry about the implementation. Worry about what you are trying to accomplish. Strategy is about...
39
Rob Myers
xyphrnld0x
Dec 13, 2007 7:06 pm
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... ......
40
Rob Myers
xyphrnld0x
Dec 13, 2007 7:17 pm
All Patterns, and OO programming overall, is about communication and maintainability. Reflection tends to disguise things. Visitor Pattern does tend to add...
41
Rob Myers
xyphrnld0x
Dec 13, 2007 7:23 pm
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...
42
Max Guernsey, III
maxguernseyiii
Dec 13, 2007 7:28 pm
... 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...
43
Max Guernsey, III
maxguernseyiii
Dec 13, 2007 7:31 pm
... or ... could ... necessarily ... decide ... Freeing ourself from the technology for a moment, what if it was easy to add and remove methods and the...
44
Rob Myers
xyphrnld0x
Dec 13, 2007 7:37 pm
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.,...
45
Rob Myers
xyphrnld0x
Dec 13, 2007 7:39 pm
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...
46
Rob Myers
xyphrnld0x
Dec 13, 2007 7:52 pm
You may want to look at Builder Pattern. Abstract Factory Pattern (which I really wish we could rename to Abstraction Factory Pattern) is also quite potent,...
47
Rob Myers
xyphrnld0x
Dec 13, 2007 8:03 pm
Patterns change drastically based on the languages of implementation. In fact, languages have a lot of effect on designs, overall. Do what is clearest and...
48
Alan Shalloway
alshalloway
Dec 13, 2007 8:38 pm
... trying ... I'm sorry max, but trying to convey intent through implementation is like trying to convey taste with pictures. It can be done if the person...
49
Alan Shalloway
alshalloway
Dec 13, 2007 8:39 pm
... I would suggest the patterns stay the same, but rather the implementations of the patterns change. Alan Shalloway CEO, Net Objectives...
50
Max Guernsey, III
maxguernseyiii
Dec 13, 2007 9:11 pm
... You must be hungry. Good point, Alan. I will keep that in mind for the future. Max Guernsey, III http://www.hexsw.com...
51
Rob Myers
xyphrnld0x
Dec 13, 2007 9:34 pm
Yes, I spoke inaccurately. How patterns look in the code (their implementation) may change, but the patterns themselves do not change. As you say, the pattern...
52
Max Guernsey, III
maxguernseyiii
Dec 13, 2007 9:35 pm
... So, then, how does one get help when they don't know their own intent? Surely I'm not the first person who simply does without being able to articulate...
53
Max Guernsey, III
maxguernseyiii
Dec 13, 2007 9:36 pm
... Pattern) is ... to ... I understand everything you just said... or at least I think I do. I do not understand how it pertains to the question. What is...
54
Alan Shalloway
alshalloway
Dec 13, 2007 10:10 pm
... intent? ... to ... Patterns can actually help here because each pattern's intent can be a checklist you use to see if that is necessary in your problem...
55
Rob Myers
xyphrnld0x
Dec 13, 2007 10:12 pm
Perhaps set aside, for now, extracting intent from implementation. Instead, extract implementation from intent. One way would be to specify the intent of the...
56
Rob Myers
xyphrnld0x
Dec 13, 2007 10:59 pm
Max, It's very possible that I've misinterpreted the original question. You asked "What is the class-level equivalent of the Template Method Pattern?" and I...
57
Max Guernsey, III
maxguernseyiii
Dec 14, 2007 2:56 am
... be a ... domain. ... customer. ... believe. :) ... I know you have a lot of cats. I bet that I still have more per square foot of housing, though. :) To...
58
Alan Shalloway
alshalloway
Dec 14, 2007 2:01 pm
... That's exactly what I am saying. In fact, you don't get to the real value of patterns until you start doing that. For example, let's say you've got a...
59
Max Guernsey, III
maxguernseyiii
Dec 14, 2007 2:33 pm
... real ... all ... much ... of ... your ... basic ... variations ... the ... "Patience" and "Tolerance" are my two middle names... I'm not trying to be...
60
Alan Shalloway
alshalloway
Dec 15, 2007 1:19 am
... to ... part, ... Of course you can use them this way. I did things like that with other patterns. However, I would suggest that this is intuiting the ...
61
Max Guernsey, III
maxguernseyiii
Dec 15, 2007 4:16 am
... the ... a ... more. ... you ... the ... Fair enough. I think I'm on board with it though I admit to intuiting more often than I should. When you don't...
62
Max Guernsey, III
maxguernseyiii
Dec 15, 2007 11:28 pm
This is round, like, "a billion" of this discussion between me and some of you but I'm still not convinced that the stove is hot, yet, so I'm going to reach up...