in reply to (jeffa) 3Re: Creating random passwords?
in thread Creating random passwords?
Umm ... no offense meant toward sauoq,
Why would I take any offense?
but why embed that code in a script when you can use Crypt::GeneratePassword instead?
This is an old discussion. There are many reasons why one might choose to use a short piece of code instead of a module. And vice versa. In fact, many of them overlap. It's all a question of your priorities for the project at hand. Things to consider include maintainability, verifiability, deployability, development efficiency, run time efficiency, and compatibility among others. Even corporate culture can play a role.
But when it comes to creating applications, you don't have to reinvent wheels like that.
You're right, you don't. And CPAN is one of the most wonderful things about Perl. On the other hand, sometimes a custom built wheel fits better than a generic one. Fortunately, Perl gives us the tools to build those too. As for which is best, well, the only answer is: "it depends."
Lucky for us, Perl so often gives us the choice. :-)
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (jeffa) 3Re: Creating random passwords?
by stonecolddevin (Parson) on Jul 06, 2003 at 05:20 UTC |