[Ros-talk] [Fwd: lookup experiment]
Shasckaw
shasckaw at skynet.be
Fri Dec 26 14:32:55 EST 2003
Simon Strandgaard wrote:
>On Fri, 2003-12-26 at 12:43, Shasckaw wrote:
>
>
>>From: Shasckaw <shasckaw at skynet.be>
>>To: Ruby Operating System <ros-talk at rubyforge.org>
>>Subject: lookup experiment
>>Date: 26 Dec 2003 12:38:23 +0100
>>
>>In AbstractSyntax.rb , the method name "accept" is not evocative enough.
>>Wouldn't it be better to name it "visit"?
>>
>>
>
>
>I use the visitor design pattern. It is standard to name that it
>'accept'. I don't intend to go against standards.
>People whom are familiar with design patterns will scratch their heads
>and wonder why I choose a non-standard name.
>
>I stick with 'accept'.
>
>Suggestions for other modifications, changes... etc. are of cause
>welcome :-)
>
>
You surprise me! When you have to choose between following a standard
(which is not so well known) and being developer friendly (with
evocative names), you prefer to choose the standard way?
When standard are not barrier for being user friendly, standards are
good. When they act as a barrier, they are bad and should be changed.
That's my opinion.
But well, if you really want to use that name instead of another, it is
your right, it is your program after all! :)
I have suggestions for the rest of the program, shouldn't take me too
long to write.
Lio
More information about the Ros-talk
mailing list