Command Line Decision

chaoticset on 2002-08-20T18:40:02

You know you haven't quite got the hang of this testing thing when you realize that, since you've been writing a test script and unit tests, you've been coding entirely inside the unit being tested, completely inappropriately. Sigh.

My short-sightedness will hurt in the short run but help in the long run, because (hopefully) I'm going to learn this lesson here and not mangle future projects. The Function Call Needs To Return Simple Things, and it's not, it's returning oodles of text. It needs to return either the links between the given links, or the start link, the links between, and the end link, all as an array. (I've actually thought that this should be switchable behavior, but then the question is which to have default. Probably the first idea (just the links between) because any script calling this function will presumably have the start/end links already, and can do what it needs with them on its own. Conceptually, though, it should return the whole chain, start, end, and all in between.)

I'll decide when I get home. I have to go whup my work-trainer at _Halo_ in a few hours. :)