Markus Schmidt-Gröttrup wrote:
> Developing J verbs, I mostly proceed as follows:
> - get my test data into appropriate nouns.
> - try operations and expressions in my session
> - copy the right ones into verbs of an ijs-File
> - run the ijs-File and try the verbs.
> 
> However I often experience the following problem:
> - within a verb an extern noun is used
> - as the noun is present in the session the error is undiscovered in that 
> session
> - the error occurs when starting a new session
> - the definition of that particular noun is not available any more
> 
> I'd like to hear how other forum members overcome that problem.
> 
> Ideas:
> 
> 0. Read every verb in painsticking detail before using it.
> 1. Work with two sessions (with different background colors) a developing and 
> a test session
> 2. Write tacit verbs (I often fail to do so)

Your workflow is:

 * experiment in the ijx session
 * copy your experiments to scripts and perhaps other files.
 * close and restart J, only to find that you did not copy everything
you need

A better workflow is:

 * make definitions in scripts and other files
 * load these files and use the session only to view the result of
loading the scripts, and for trivial experiments with existing definitions

In the second workflow, all definitions (whether nouns or verbs) are on
file somewhere and will persist when you close and restart J. Project
Manager can be used to automate this.

You do not need two sessions, nor need to use only tacit definitions.

> Question:
> 
> 3. Is there a verb to find extern referenced names within a verb definition?

I don't have one, but this would be a nice addition to Project Manager,
to complement the "Global Assignments in File" menu item.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to