first of all you need to get some discipline so that your learn how to think like the code should look when it is finished

that probably doesn't make any sense but the best description of what i'm talking about either does not exist or i've never heard it written down and i don't care enough to do the necessary phd work in exploring it

nonetheless a program, conceptually, consists of three parts: input, processing, and output

"what are the things i need to run and how do i clean them up, and/or how do i accept/reject them"

"assuming the ideal inputs, what needs to be done"

"assuming the idea processing results, how does the observer expect to see the output, and what will make sense to them"