If anyone is looking for a fully fledged example of OOJ take a look at the JOD 
addon. It's built from six classes and as many runtime objects as required. 
Most of the techniques people have mentioned in this thread are employed in 
JOD. Start with the class diagram in the PDF manual before wading into the 
source which is available in many forms with the most handy on GitHub.

Sent from my iPhone

> On Sep 18, 2014, at 2:27 PM, Lippu Esa <[email protected]> wrote:
> 
> Don't know if this is a good example but I've found OOJ extremely useful when 
> working with databases. 
> 
> My class hierarchy is very simple: select statement class -> database 
> connection class -> Informatica (ETL tool) repository class.
> 
> It is nice and easy to have instance specific persistent attributes (nouns) 
> like result set, column names, sql sentence, start, end and elapsed time, 
> server, database and user names and boolean row and column filter vectors.
> 
> It is also easy to add new attributes and methods to child classes or overlay 
> them or use inherited ones.
> 
> Still, most of my verbs are not class methods and many of my nouns are not 
> class instance attributes.
> 
> I apologize if I misused any OO or J terms.
> 
> Esa 
> 
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Devon McCormick
> Sent: 17. syyskuuta 2014 18:37
> To: J-programming forum
> Subject: Re: [Jprogramming] OOJ and calling a verb from another locale
> 
> As Dan says, the usual way J handles a group of variables is with an array.
> 
> I'm still interested in seeing a realistic example of how OOP provides
> something useful for organizing code
>  The toy examples usually trotted out - different geometric shapes or cars
> - do not seem convincing.
> ----------------------------------------------------------------------
> 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

Reply via email to