For something so small and simple, what is your opinion over which is better - extending the base to be inheritable by various sub-classes (Pg, MySQL, Oracle, etc) or just copy-n-paste the code, given how simple and unlikely it is to change.
To start with, I would contact the author of Class::DBI::AbstractSearch and ask him if he is interested in making it inheritable as you describe. If he is, then you have your answer. It is certainly the better way to go about it. As for cut-n-paste, no matter how unlikely it is something will change, Murphy's law dictates that it will.
A secondary question: Is this worthy of CPAN, or should I just save it for my own toolbox (or just post it to the catacombs)?
I think my answer to the first question sort of answers this, but I would just like to add, that if it is useful to you, then it is likely useful to others, so upload it to CPAN. But hey, thats just me, others may feel CPAN is more "Sacred" than that.
In reply to Re: Inherit or copy-n-paste?
by stvn
in thread Inherit or copy-n-paste?
by dcvr69
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |