in reply to Re^3: How do "you" make a tree in perl
in thread How do "you" make a tree in perl
You may be confusing lack of an integrated Test::More with a lack of testing. While automated testing in a CPAN module is awesome, the omission does not mean the author did not test it. In fact, to assume only automated testing is sufficient is an equivalent evil.
If you spent so much time testing it, and your tests are well written, then why would you not include them in the distro?
I agree that Test::More and make test are the not the only ways to test, but the author seems to have taken the time to include a very basic test.pl script, which from all indications is auto generated in some way, but not taken the time to do anything further. Including tests with a module is just good practice, it lets those of us who are control freaks (you and I) know that you have tested your code. Not including them makes paranoid control freaks (me) very very uncomfortable. And its not just about my mental well being, I have paying clients, who expect me to create reliable and well tested software. To use a module whose tests I cannot see, and have no way to verify is not fair to my clients and frankly unethical IMO.
And yes, you are correct, that testing is no guarantee. However, it is an excellent tool, and one whose benefits should not be dismissed. I would rather have/use the most effective tool available, even if it is only 50% effective, than nothing at all. Basically, 50% is better than 0%.
You are indeed. I am referring to the common falacy of subclassing Car as a Node just because you need a Tree of Cars. I'm not sure having Car as a data element in a Tree is exactly right either, though it is more passable
I thought so, I agree with your point, however I disagree that mixins are the way to solve that. Surely a Car is not a Node, but I don't see a Car as needing to be mix-ed-in with a Node either (meaning the Car now has the properties of a Node as well as that of a Car). I see a Tree of Cars needing Nodes which contain Cars (has-a/delegation however you want to look at it).
Regarging your opinions on Design Patterns, I agree on some points, however, I think this topic deserves its own meditation. Which I would happy to participate to contribute too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How do "you" make a tree in perl
by SpanishInquisition (Pilgrim) on Sep 29, 2004 at 18:18 UTC |