David Landgren <[EMAIL PROTECTED]> writes:
>Steve Peters wrote:
>> On Tue, Mar 14, 2006 at 04:52:18PM +0100, David Landgren wrote:
>
>[...]
>
>>> /eg scripts are a nice "hands-on" way of finding out how a module works
>>> in real life.
>>>
>>> No distribution should be without one!
>>>
>>
>> Unless, of course, it has an examples/ directory, which would cause the
>> kwalitee test to fail. ;) I do think its a good idea, especially with
>> large, all-encompassing type modules to provide some examples, but
>> testing for (in effect, regulating) the name of the directory that will
>> be difficult to do.
>
>Man, you wanna start a religious war or something?
I would never have tought of calling a directory eg and /e.g./ would upset VMS.
So I would have used /examples.
Except of course in Tk best candidate is called /demos with a liberal
sprinkling
of foo_demo in the top level ;-)
But demos are not always the same as examples. Some Tk demos are there
to show off run-time behaviour rather than how-to-code.
I did have the idea of looking for glob("*/examples.txt") which my guess
is nobody has right now but could be dropped into whatever directory
author used.
>
>I wasn't proposing to regulate anything, merely document existing
>practices. After haved grepped through a fair portion of my local
>mirror, at a bare minimum the pattern to match an eg directory looks like
>
> m{/(?:e(?:xamples?|[gx])|(?:Ex|s)amples?|contrib|demo)/$}
>
>If an obvious name is overlooked, I'm sure people will draw attention to
>it after the first iteration :)
>
>David
>
>> Steve Peters
>> [EMAIL PROTECTED]