We don't bite newbies here... much | |
PerlMonks |
Re: Params::Validate - a powerful tool for robust subroutine designby radiantmatrix (Parson) |
on Jan 23, 2006 at 17:31 UTC ( [id://524982]=note: print w/replies, xml ) | Need Help?? |
I'm a big fan of Params::Validate myself. Like most things, though, there is a drawback. I converted an entire project (about a dozen modules and two scripts) to using Params::Validate in preparation for handing it off to another developer who was to use the modules in new scripts. The upside: the developer was able to code more quickly to my interface because he got very clear error messages when invalid params were passed. The downside: after conversion, the original scripts ran more slowly. Noticably, but acceptably. Of course, in many cases the performance difference will not matter compared to the advantages. That doesn't stop me from wishing I had the time to write a Params::Validate_XS. And, since a number of things I write *do* have to consider per-subroutine-call performance, I end up using the existing Params::Validate a lot less often than I'd like.
<-radiant.matrix->
A collection of thoughts and links from the minds of geeks The Code that can be seen is not the true Code I haven't found a problem yet that can't be solved by a well-placed trebuchet
In Section
Meditations
|
|