Xiong has asked for the wisdom of the Perl Monks concerning the following question:
I like Smart::Comments but it prints all its output to STDERR. In another project I'm already redirecting STDERR, so I want to be able to instruct my smart output to go elsewhere: usually, to a disk file.
I've forked Smart::Comments and rewritten it, both to permit printing to any filehandle and to address some stylistic issues. This project is incomplete but making good progress. Please see link to current GitHub repository. More work remains.
Originally, I intended to call this 'Smart::Comments::Log'; its working title is 'Smart::Comments::Any'. Some Monks have objected to the latter name as vague. I need to name it finally, change all places where the name appears, and move the GitHub repo before uploading to CPAN.
I began by keeping the new module fully backwards-compatible with vanilla Smart::Comments but I feel this may be too restrictive in future. The project is a major rewrite, a fork, not a patch. I've emailed current maintainer without getting a reply. The idea of releasing this as a new version of Smart::Comments is probably a dead end, even if I thought it wise.
I've aired this naming issue in CB, posted to comp.lang.perl.modules, sent an RFC to modules@perl.org, and sent a couple emails to current maintainer with CC to TheDamian. The silence is deafening.
I'm hostile toward long identifiers, especially those of mixed case. For what it's worth, I don't feel the 'Smart::' top level namespace was an ideal choice; but now, it may be unwise to put the current module anywhere except under 'Smart::Comments::'.
Current ideas include:
I will update this list to include new suggestions.
Perhaps I should note that the list above is only indicative. This node exists because I don't especially like any of them.
Devel::Comments is the winner.
Development has halted for two weeks as, here and elsewhere, comments have been solicited on the right name for it. An excessive amount of late-night CB time has been consumed. Hundreds if not thousands of dollars have been spent discussing the topic on thousands of machines throughout the entire civilized world.
I bow to the consensus.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: The Module Formerly Known As ::Any
by BrowserUk (Patriarch) on Jul 25, 2010 at 04:12 UTC | |
by Xiong (Hermit) on Jul 25, 2010 at 05:01 UTC | |
|
Re: The Module Formerly Known As ::Any
by Thoughtstream (Novice) on Jul 25, 2010 at 08:44 UTC | |
by Xiong (Hermit) on Jul 25, 2010 at 09:47 UTC | |
|
Re: The Module Formerly Known As ::Any
by furry_marmot (Pilgrim) on Jul 26, 2010 at 21:31 UTC |