pileofrogs has asked for the wisdom of the Perl Monks concerning the following question:
As a sysadmin I have lots of little scripts that sometimes run very often and they can send me email or pages. If a script that runs every minute starts sending me pages, I can get a flood of pages, which no one likes. Instead of re-writing the boring code that keeps a script from sending too many pages, I've written a module. I've discussed it in detail here: RFC: Time Lock Module Idea?.
So, the module is written, but I'm still not happy with the name, so I turn to my venerable co-monks for assistance.
How do you sum-up "Module that helps by letting you note that you just did something and you don't want to do it again for X seconds."? Here's the contenders so far:
My first thought. Pretty lousy idea. It doesn't lock anything, and it doesn't operate like a time-lock at all (it's based on X-seconds-elapsed not time-of-day.)
My second idea. Also pretty lousy. It sums up what the module does OK, but it looks terrible when you actually use it. ( $notnow->now_ok() ) Yuck!
Idea by rhesa. The name doesn't do anything bad, but it also doesn't really tell me what the module does...
Step up, one and all and help me name my module!
Thanks
--Pileofrogs
Update : Thanks Everybody! Bartender! A round of ++ for the house!
My favorite right now is rate limit. Maybe as Limit::Rate.
Final Update :It already exists! Algorithm::FloodControl. I don't think I would have found Algorithm::FloodControl if it weren't for these converstations. Thanks everybody!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Module Name Help!
by xdg (Monsignor) on Mar 28, 2006 at 03:32 UTC | |
Re: Module Name Help!
by NetWallah (Canon) on Mar 28, 2006 at 01:53 UTC | |
Re: Module Name Help!
by jdporter (Paladin) on Mar 28, 2006 at 14:22 UTC | |
by HollyKing (Pilgrim) on Mar 28, 2006 at 17:14 UTC | |
Re: Module Name Help!
by parv (Parson) on Mar 28, 2006 at 06:52 UTC |