Hmm, it rhymes almost like a sonnet :) I don't know if debugger was mentioned, it would allow to catch things earlier and see what variable are available.
Loose undefined nouns are treated as verbs and could either silently fail or cause strange errors like control error in control structures. > From: Markus Schmidt-Gröttrup <[EMAIL PROTECTED]> > > You missunderstood my message: I never use > or plan to use global noun by intention! > It happens to be the case that a noun name remains > in a verb definition that was used > in the ijx session by inattention. > In that session > the verb runs (with the appropriate test data) > but fails when used in a new session. > As Chris has pointed out, I better > start to write in a ijs session > instead of gathering my session hack. > "Discovering" was the wrong word obviously, > I should have titled "finding and removing". > > Markus > > Oleg Kobchenko schrieb: > > It looks like you are a victim of a particular coding style. > > If you avoid using global nouns, it will go away. > > Instead, consider OOP and member nouns sparingly, whose number is easy to > track. > > Refactoring is a good thing. > > CASE tools and compilers condone excesses. > > > > Oleg > > > > > > On Sep 16, 2008, at 4:00, 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) > > > > 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 > > > > > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
