|The stupid question is the question not asked|
STUMP - Simple Textual Unified Modeling in Perlby halley (Prior)
|on May 21, 2003 at 03:35 UTC||Need Help??|
Here's a little scratch tool I whipped up a few weeks ago. It's nothing esoteric, but it's saved me a bit of time both at work and at home, when considering how I want to arrange a new module, or more importantly, a set of interrelated modules.
As the name implies, this script accepts a simple text input that describes one or more modules, modeled in a very abbreviated Perl-like syntax. The input is line-oriented, but is somewhat forgiving of minor variations.
All it does is create the correct directories and makes stumps-- stubby implementations of the aforementioned module or modules. The template is very crude, but saves the labor of writing all the cursory comments, POD, and subs from scratch.
There's plenty of room for improvement and extension. One feature I didn't finish was to name various proposed tests, and have the stump script write the appropriate Test::* scripts alongside each boilerplate module.
For brevity and experimentation, I just published the script at http://www.halley.cc/ed/linux/scripts/stump - play with it or offer ideas.