Author Topic: Includes  (Read 5773 times)

DonQuixote

  • Rock Star
  • *****
  • Posts: 205
  • To Dream the Impossible Dream...
Includes
« on: June 02, 2009, 12:57:24 PM »
In some software products they maintain includes for every data file with variables equated to the field positions.  For instance, CUST.NAME.POS = 1.  So within your programs you'd reference CUST.NAME.POS instead of 1.  Then when the standard software moves the field to a different position you don't have to rewrite your custom programs.  Did the Prelude product think of this? If so where are these includes?

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: Includes
« Reply #1 on: June 02, 2009, 01:14:17 PM »
They didn't.  Everything is referenced by hard attribute numbers everywhere throughout the BASIC.  As it was explained to me, there were certain techniques like this that were specifically avoided to try to obfuscate the code in an attempt to prevent competitors from reverse engineering the logic.
-Kevin
Accidents "happen"; success, however, is planned and executed.

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: Includes
« Reply #2 on: June 02, 2009, 01:15:46 PM »
Oh, the one thing they DID do is /FLI.  You can get some ideas from /FLI of what is where, but you have to translate that information as you're reading through the code.  So when you see something like:

PARMS(3)<21,3>

...you can go to /FLI and get some ideas of what that "means".
-Kevin
Accidents "happen"; success, however, is planned and executed.

nmorgan

  • Professional
  • ***
  • Posts: 40
  • Norman Morgan
    • Brake Supply Co.
Re: Includes
« Reply #3 on: June 02, 2009, 03:43:49 PM »
I have wrestled with figuring out PSI code daily for the last 15 years and most of it still makes me want to swear.

Let's not even talk about cramped, multi-statment lines with no spaces, or their love of the GOTO statements branching out of FOR-NEXT loops.  It's like a style book of How Not To Write Code.  Yet....it works....mostly....much of the time.  I guess it's kind of like the talking dog.  You don't pay much attention to what he says, you just marvel that he talks at all.

The only bright spot is that I only have to put up with it for another 89 days and 17 minutes.
My wife says her life is like a fairy tale.
She married a prince and he turned into a toad.

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: Includes
« Reply #4 on: June 02, 2009, 03:46:21 PM »
But who's counting? ;D

Love the talking dog analogy.  I'll have to remember that one.
-Kevin
Accidents "happen"; success, however, is planned and executed.