Re: Maintain list of attached event handlers (.Net 1.1)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Wed, 11 Jul 2007 16:24:54 -0700, Armin Zingler <az.nospam@xxxxxxxxxx> wrote:

[...]
Let me put it this way:
A basic programming rule that I (and not only I) always obey is: Clean up
references as soon as I don't need them anymore.

Fine. Remove them then. It doesn't matter. I have said this several times. I do not know why you insist on dwelling on the issue.

As, in this case, I don't care whether it takes 1/100 or 1/1,000 of a
second, how can it be a performance issue? Again, /you/ mentioned
"performance" first.

I don't understand what the concern of "superfluous things" is if not as regards to performance. However, fine...I'll take as granted that this is a question of aesthetics and not performance. Your argument still fails:

The result of your misinterpretation of why I don't
want to do superfluous things. It's not for performance reasons. It's just
illogical to do something that does not have to be done.

But it _does_ have to be done. The alternative to is to do something else that otherwise does not have to be done.

You are arguing in favor of a more complicated implementation, so that you can avoid something that in theory doesn't have to be done. But the only scenario in which it doesn't have to be done is the one in which you complicate the implementation.

The complicated implementation "does not have to be done" any more than removing non-existent handlers "does not have to be done". So, how is it that you feel aesthetically it makes more sense to choose doing the thing that doesn't have to be done that is more complicated, than to choose the thing that doesn't have to be done that is simpler?

(yes, I know "it
doesn't hurt" - but doing something that doesn't hurt but that is not
necessary is still illogical)

It is only illogical if it's true that it's not necessary. It's necessary unless you are intent on doing something else that doesn't otherwise need to be done. I admit, in this context it appears to be unnecessary. But only because you are intent on doing something else that otherwise is unnecessary.

[...]
I think, everything is said about it, don't you, too? :-)

If I thought that "everything is said about it", I would stop saying things. As long as you continue to present illogical arguments, I will continue to point out the flaws in the logic.

Pete
.