[self-interest] Self Style Question
Jecel Assumpcao Jr
jecel at merlintec.com
Tue Feb 13 21:39:50 UTC 2001
On Mon, 12 Feb 2001, C. Ramakrishnan wrote:
> When creating a program in Self what's the convention for where to put
> your traits, globals, and oddballs? Do you put it with the system
> traits, globals, and oddballs or do you create your own namespace in
> your application for these things?
In all the latest programs I have written, I created a single oddball
object as a global to use as a namespace for the application. That
avoids name conflicts ("polygonMorph" is one thing and "ecoDesign
polygonMorph" is another). Naming things ("traits myMorph", for
example) doesn't seem so important when you do things graphically. This
does give the transporter some headaches, however, since global names
make its output easier and shorter.
The big problem with this way of doing things is that there are some
parts that are specific to your application and others that are
generally useful. The latter really should be global so that every
application can share them, but it is very had to tell which is which
until you are finished.
More information about the Self-interest