quote:Original post by supergeek2k
I do agree with what you are saying that designing something for a use that you can''t think of is pretty silly, but that is not what software reuse is all about. I don''t know where you got the idea that it is.
From the correct, rather than fallacious, meaning of reuse.
quote:
Nobody is suggesting that you have to design every class to be reusable in every instance. But you can put a little more effort into writing the classes that might be used in other contexts with a more generalized interface so that they do not have to be redesigned for further use.
By the definition of reuse, you don''t know about those other contexts when you design the original class. If you do know about other contexts, and you design for them, then it is *use*, not reuse, that you are achieving. That''s the point, using something for its intended purpose is *not* reuse! So, if you put in a "little more effort" to create "generalized interfaces", you don''t know if that effort is worthwhile, since you don''t really know the correctness of the design for future uses. Simple, no?
quote:
It is tried and proven to be profitable to do so.
Not by any reasonable definition of "proven", its not. If it had been proven, I wouldn''t be here arguing otherwise.
quote:
I guess the whole argument is over your definition of reuse. I have not found any reference to software reuse which fits your mold. Perhaps you can point me to one.
Do you not understand the difference between use and reuse? I was doing some DIY about my house at the weekend, and I had to drill some holes. I didn''t *reuse* my drill for the purpose, I simply *used* it for what it is was made for. The fact that various OO people came up with a rather woolly meaning of reuse around 10-15 years ago has little value to my mind.
Still, talking of value, I''m failing to see the value in me continuing this discussion. I am not concerned whether you see my point of view or not, I really don''t give a toss if you think I am an idiot. It''s simply not in my best interests to try and convince you of these ideas. I''ll leave you with one last thought... I remember around 6-7 years ago that I believed the same things you are now saying to me.