|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Comments and suggestions on new moduleby LTjake (Prior) |
| on Sep 18, 2007 at 14:09 UTC ( [id://639645]=note: print w/replies, xml ) | Need Help?? |
|
I've noticed in almost every method that you had "if it's GD, do A, if it's Imager, do B, etc.." This screams to me that you need to do some deeper encapsulation. I would propose that you have Image::Mate::(GD|Imager|Image::Magick) and when new() is called bless your object to the user's preference. Just my 2 cents. --
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||