From: Wizard <wi...@ne...> - 2003-02-19 14:57:04
|
> Conversely, I can't tell you the number of times that I've had to chase > through duplicated code because one splits on ", " and one on /,\s+/. > > Putting the code in modules allows us to write tests so that we know > that it returns what it is supposed to. > > One of our objectives is to show best practice in perl programming so I > think it would be wise to ensure we have no code duplication and proper > tests. As per your statement above I will create a get_array instead of using caller context, so that we truly do 'know that it returns what it is supposed to'. > As always though, this is my opinion and it's your project ! It's not my project, it belongs to everyone. My dissent is not because I'm opposed to input, but simply because I don't agree with your argument. That's what makes better software. If you don't convince me it doesn't mean I won't do it. However if it becomes a problem support-wise, it will likely be too late to remove it. Grant M. |