4. Flow Chart
While not al programmers do this, we believe that you create a flow-chart of the logic of the model before starting to write code. The goal here is to write out, perhaps in a drawing, what you think the model will look like. We often use graphical tools like Microsoft Visio to assist in this process, but a pen and paper is more than adequate.
The flow-chart becomes a guide for the code-writing to come; it can provide as much or as little detail as you want, but it should have enough detail to describe what you think the model is going to look like. (The actual model might change as you work through the process of coding, but this is ok!).
Here is an example of a flow-chart that we created to capture an existing model. (We’ll use a different example below as we work through an actual model example.
|