Are you aware that SPLat, like any decent programming language, lets you use meaningful names for inputs, outputs, RAM variables etc? Which of the following fragments say the most to you:
WaitOn 5or
Off 3
WaitOn FullSensor
Off FillValve
Imagine now that you refer to the FullSensor 75 different times in your program. Then accidentally Production wire the sensor to input 4 rather than input 5 on 250 control boxes.
Which job will be easiest and safest:
1. Rewiring 250 boxes2. Changing
WaitOn 5toWaitOn 4in 75 places in a 3000 line program.3. Changing
FullSensor iEQU 5toFullSensor iEQU 4in one place?
And which form will it be easiest for you or someone else to read in 6 months or 6 years time?
One of the golden rules of programming, and a sign of a professional, is to write a program in a style that is clear and uncluttered. Use named "resources", use whitespace to effectively separate functional sub-blocks of code and use comments to describe what a block of code is doing.
This blog entry will not function fully without JavaScript
A very large number of websites rely on JavaScript to work properly. This one is no exception. If our website has worked for you in the past but just broke, you probably installed IE7, which seems to default to disabling JavaScript. There are good instructions for enabling JavaScript here. We recommend FireFox, the Open Source browser.
