Raul Miller wrote:
On 6/2/07, R.A. MacDonald <[EMAIL PROTECTED]> wrote:
Exactly. Test-first works wonders here.  A verb that passes by without
being tested can fester and be nasty to sort out.

Ok, but that wasn't the question which was asked.

...whatever that means.

Also, I can think of several ways where testing can fall down,
for example, when a session contains a definition which script
does not, but the script relies on that definition.
No. This is Test-First 101. No in-session definitions without a test that requires them. (this drifts into another forum, so no more.)
Copy and paste error can also be frustrating.  Or,
more generally: debugging someone else's code
can get tedious sometimes.

I can also imagine other scenarios where a little extra
detail about undefined words in the session could be
handy -- even if it does nothing for explicit verbs.

Anyways, limited use techniques are not the same
as useless techniques.
Good point, even though it doesn't contradict anything.
That said, another useful technique for finding
undefined tacit verbs is to bring up the debugger,
and look at a stack trace.  This will identify the
verb whose definition contains the reference to
the undefined verb.   For example, with:

  a=:b + c
  b=: *
  c=: d * e
  d=:%:
  e=: f - ]
  a 3
|value error: f
|       a 3
My own session would probably have 'a 3' as the first sentence. then the value error, then 'a =: b + c' then more value errors, then 'b =: ...'

Take it from the Ducks: if you never get two goals behind, it's really hard to lose.

--

later ...
------------------------------------------------------------------------
|\/| Randy A MacDonald   | APL: If you can say it, it's done.. (ram)
|/\| [EMAIL PROTECTED]  |
|\ |                     | The only real problem with APL is that
BSc(Math) UNBF'83        | it is "still ahead of its time."
Sapere Aude              |     - Morten Kromberg
                        | Looking for a whip-smart APL developer? Send me a 
note.
Natual born APL'er       |     mailto:[EMAIL PROTECTED]
-----------------------------------------------------(INTP)----{ gnat }-

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to