Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: OT: A reasonable temporary password generator?

by apsyrtes (Beadle)
on May 10, 2003 at 21:24 UTC ( #257163=note: print w/replies, xml ) Need Help??


in reply to OT: A reasonable temporary password generator?
in thread A reasonable temporary password generator?

Nope, just pointing out that when you say "resorting to using a module" you sound like you have something against taking advantage of tested and proven work to advance your own, and would prefer to reinvent the wheel when faced with a choice.

Sorry if you took offense, as it seems you have. None was intended. Good analysis though, I love it when someone takes the time to show me with some solid statistics just how flippant I'm being. ;)

Jason W.
  • Comment on Re: OT: A reasonable temporary password generator?

Replies are listed 'Best First'.
Re: Re: OT: A reasonable temporary password generator?
by Your Mother (Archbishop) on May 11, 2003 at 08:06 UTC
    Perhaps it's mother's day making me prickly.

    Sometimes when I look at the list of use ABC .. XYZ at the top of a script trying to creep below the fold of my poor teraterm I cringe.

    I ♥ the CPAN. (I hope that entity displays right for everyone)

      Sometimes when I look at the list of use ABC .. XYZ at the top of a script trying to creep below the fold of my poor teraterm I cringe.
      Why? That's that many lines of code that more than one person has used, evaluated, and tested for the purpose at hand. Code re-use is a very good thing. Independent implementation is not. I even wrote a column on that (surprise {grin}).

      -- Randal L. Schwartz, Perl hacker
      Be sure to read my standard disclaimer if this is a reply.

        Obviously you're right that using someone else's good work is beneficial. But I personally believe you're making too general a statement. As you've written it, you aren't really saying code re-use is good, you're saying only code-reuse is good.

        This is the same fabulous rhetoric, "Don't reinvent the wheel." There would be no Perl at all if Larry had taken these adages to heart b/c he could have re-used the shells, C, awk, and sed and pretty much covered what the first few versions of Perl did and then some. If one can make a wheel 5% better by putting in 10,000 times the work, does it make a fool? I don't care if my neighbor spends all day working on wheels. I'm not obligated to use any of them. Perhaps s/he'll hit on a nice one and might share.

        Lots of kids here would probably cringe if I said, "I just wrote this great script. It has 42,000 lines of code and runs great." That's what we do when we import 50 modules. Or even 10 that each import a couple families. Many modules are so completely generalized to be portable that they contain scads of things you never use but have to pay for the loading of anyway. Date::Manip is one of my favorite modules but I've had it bring down a corporate intranet from a well-used CGI. It helped write the app quickly but it had to come out when the app was finally in full swing.

        I have a module I am working on as a drop in replacement for CGI.pm's HTML routines because I like them so well but don't need anything else since I've got Apache::Request to cover param() and so on. Is it better than CGI.pm? No way. Is it as well tested? No and never could be. Is it as well written? Not particularly, not yet. Is it faster? Benchmark says, 200-500%. And I could have used the very nice HTML::AsSubs instead, but at a speed penalty of 2000%.

        Will this module ever be persuasive enough to make it into production applications or to CPAN? Maybe not, but I think other mod_perl kids might like to have it since I'd like to so it's worth trying out.

        I really love to write code, sometimes even when it is destined for the bit-bucket. It somtimes seems like many Perl hackers hate to write anything except sig blocks. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://257163]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2022-01-20 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (56 votes). Check out past polls.

    Notices?