Hi Markus,

What I do is follow these policy:
1. Never use global variables inside a verb, pass them as parameters
2. Verbs use proper case and descriptive names. For example, a verb that 
computes for base consumption will be defined as: 
computeBaseConsumption=: dyad define
NB. Put stuff here
)
3. When programming, always store your script in a new IJS window (CTRL+N) and 
just press CTRL+W to test it. This will make sure that only the code that you 
want is loaded and when you start a new session ... you can verify which nouns 
were forgotten.

Don't despair, you're not the only one ... I've stumbled on this problem a lot 
of times. ;) 

r/alex

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Markus 
Schmidt-Gröttrup
Sent: Tuesday, September 16, 2008 4:00 PM
To: [email protected]
Subject: [Jprogramming] Discovering the use of extern nouns

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)

Question:

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

looking forward to the discussion, 

Markus

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

Reply via email to