home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17714 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.2 KB

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!ames!olivea!gossip.pyramid.com!pyramid!oracle!unrepliable!bounce
  2. From: dnavas@oracle.uucp (David Navas)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: THANK YOU!! (ReadArgs()).. but I'm handling something wrong
  5. Message-ID: <1992Dec22.180841.6380@oracle.us.oracle.com>
  6. Date: 22 Dec 92 18:08:41 GMT
  7. References: <BzHsLC.8rJ@usenet.ucs.indiana.edu> <38083@cbmvax.commodore.com>
  8. Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
  9. Organization: Oracle Corporation, Redwood Shores CA
  10. Lines: 31
  11. Nntp-Posting-Host: mailseq.us.oracle.com
  12. X-Disclaimer: This message was written by an unauthenticated user
  13.               at Oracle Corporation.  The opinions expressed are those
  14.               of the user and not necessarily those of Oracle.
  15.  
  16. In article <38083@cbmvax.commodore.com> jesup@cbmvax.commodore.com (Randell Jesup) writes:
  17. >2) It's best to define an enum or a bunch of defines, one
  18. >for each parameter in the template.  This means that if you change the
  19. >template, all you have to do is change the enum/defines, instead of searching
  20. >through your source code.
  21.  
  22. Well, that's better, but....
  23.  
  24. What's best is to define a set of routines for your "state" variables which
  25. can be changed at run-time either via rexx or the command-line (run the
  26. program again? -- depends on the program, often times), and store these
  27. strings in some kind of localizable file.
  28.  
  29. I've got the command-line reset working, the rexx stuff ready to be hooked
  30. up (more or less), but am lacking in the localizable area (this is for my
  31. WEB modules -- shameless, but short, plug).
  32.  
  33. It's very handy, you write this interface once, and then all you have to do
  34. is give a state description for every one of your different programs.
  35. Really, quite nice :)
  36.  
  37. What's even more fun is that, strictly speaking, all of these web programs
  38. are really just subclasses off of one Module_Services program, so they
  39. literally inherit this behaviour automatically, without a sizable
  40. increase in code size (a few bytes to make sure Module_Services is up
  41. and running :)).
  42.  
  43. Frankly, that sort of thing would be nice to have in the OS....
  44.  
  45. David C. Navas                        dnavas@oracle.com
  46. Working for, but not speaking on behalf of, Oracle Corp.
  47.