FOUNDATIONAL PROGRAM LAYOUT
Fundamentally, this is the order you want your program's source code to be
1 - Commented info like program author, contact e-mail, date of completion,
description, credits (where applicable) etc
2 - Declare all SUB and function modules
3 - Define all variables and arrays
4 - Set initial values for variables/arrays
5 - Initialization procedures to prepare program
6 - Main program loop and algorithm(s)
7 - Subs and function modules
It's only seven steps, but I was wondering if anyone has come up with a trick or a mnemonic for remembering the sequence of this basic structure?
Also, I'm finding that 9 times out of 10, I'll use PRINT when I should be using INPUT. I don't know where I picked up the habit, but I rarely notice the error until it comes time to run it. Any suggestions on how to break this incredibly LAME habit?