The techniques for adding structure to the script is something that comes naturally to experienced developers. This is because they have often learned it the hard way, through other people's work, and spent additional time understanding that the script can be made easier with a couple of simple additions. Again, this is something that won't be covered in user guides, but it is a very important skill for new developers to have under their belt.
Structuring the script
Getting ready
In this example, we will generate the required data automatically in the script.