in reply to Params::Validate - a powerful tool for robust subroutine design
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Params::Validate - a powerful tool for robust subroutine design
by diotalevi (Canon) on Jan 24, 2006 at 01:02 UTC | |
by autarch (Hermit) on Jan 24, 2006 at 07:08 UTC | |
by radiantmatrix (Parson) on Jan 24, 2006 at 14:44 UTC | |
by diotalevi (Canon) on Jan 24, 2006 at 14:57 UTC |