Summary
One of the simplest patterns:
- Code to put valid input data into variables.
- Code to work out anything output needs that isn't in the input.
- Code to output variable values.
Situation
You have input you need to turn into output.
Needs
Input data.
Provides
Output data.
Action
Make a variable for each input. Check the output. If there are variables needed for output that aren't in the input, you can work out their values in processing.
Where referenced