Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

chaoticset (2105)

  (email not shown publicly)
AOL IM: chaoticset23 (Add Buddy, Send Message)
Yahoo! ID: illuminatus_foil (Add User, Send Message)

JAPH. (That's right -- I'm not Really Inexperienced any more.)

I'm not just here, I'm here [], and here [] too, I ramble randomly in my philosophical blog [] and my other blog []. Soon I'll come in a convenient six-pack.

Journal of chaoticset (2105)

Friday January 04, 2002
08:54 PM

A Little Testing Never Hurt Anybody

[ #1916 ]
I wonder if I'm really using testing the way I'm supposed to. What I've fallen into is this:

I'll have an idea to make code that does __blank__. "To do that, first I've got to dump everything into an array."

So I write

ok(@_, "Anon array for __blank__.");

and then write whatever fills the array. Save, run.

not ok: Anon array for __blank__.

Hm. I didn't write it properly, then.

It almost seems as though it provides a framework to code by, forcing you to think one step ahead of yourself.

So, in this way, I'm starting to like it.

My eye's significantly better, but I've taken to washing it in the shower now. (That is, purposefully holding the lids apart and sticking it directly under the shower stream for as long as I can.) Not so much redness. Doesn't feel like an inch-long hair is behind it any more.

Perhaps I can apply my new-found testing methods to the cart-filling routine.

Oh -- in related news, I attempted to install Tk, but I don't know if it worked yet. I used PPM, and it said it couldn't update the table of contents, but it didn't say if it was the last thing to do or something significant. I ran the example .bat file that comes with Tk and it barfed instantly, so I'm guessing something's wrong. It said the error was in a .pm. I'll re-run it and find out where/what the problem is.

Coffee, coffee...

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.