-----BEGIN PGP SIGNED MESSAGE-----

Moin,

On Friday 11 February 2005 21:08, David H. Adler wrote:
> On Thu, Feb 10, 2005 at 09:28:30PM -0500, James E Keenan wrote:
> > And here are the fruits of my application of IO::Capture:  a module
> > with three subroutines which have proven useful in the project I'm
> > working on for my day job.
> >
> > The full module is here:
> > http://mysite.verizon.net/jkeen/perl/modules/misc/TestAuxiliary-0.01.
> >tar.gz
> >
> > Here is the SYNOPSIS, which includes simple examples of each
> > function:
> >
> >     use Test::More qw(no_plan);
> >     use IO::Capture::Stdout;
> >     use TestAuxiliary qw(
> >         verify_number_lines
> >         verify_number_matches
> >         get_matches
> >      );
> >
> >     $capture = IO::Capture::Stdout->new();
> >     $capture->start();
> >     print_greek();
> >     $capture->stop();
> >     is(verify_number_lines($capture), 4,
> >         "number of screen lines printed is correct");
>
> A question: is there any reason that you made this an OO module but
> still show calls to the methods as functions rather than methods on the
> object?
>
> I.e. why C<verify_number_lines($capture)> rather than
> C<$capture->verify_number_lines> ? This would also remove the need to
> explicitly export those functions.
>
> Just askin'. :-)

In similiar line of thought:

Why "verify_number_lines" instead of the (much shorter :) "lines"?

"Speaking source code" is something I like, but it shouldn't gabble on :)

Oh, and why "TestAuxiliary" and not "Test::Auxiliary"? (Auxiliary is also 
a very tough word for non-native speakers - I am bound to misspell it 
forever :)

Best wishes,

Tels

- -- 
 Signed on Fri Feb 11 21:18:47 2005 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 http://www.informatik.hu-berlin.de/~hstamm/beweis.html - Nützliche
 Beweismethoden für jeden Tag

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iQEVAwUBQg0UKHcLPEOTuEwVAQFOQQf7BXJ/iUjwxYUTj6m15C50Xwma+EqpXu2H
8acuKcKJh5iNyuCBaDePSjzza+n8UstlfhvK3P+kEzdoN2mTiTtSIXFIvMpR2nSw
Y9FNkAIORkDvsn30jmdNUXnbbF+LtINP1ryTV6jMrIAA43t44S/hgY4Jo7zt8BQL
H21FiEQbfRNe/0ZaYLvfO+nFtdqMjKyEjSv00ZzQxkGqz94OmEtkRLQBbLZiOyKi
/bn3zzZhH1PA+UOkDtRtx5nCzmlWvObwvARNTm6mwrypxf/tLwnzcja0FwW57pZp
U+nfMPlmD0GFpX3ihjK8eB7SdouHlZlAZ5UUQGfLfYBEfpwrD/0B1A==
=eIuR
-----END PGP SIGNATURE-----

Reply via email to