The goal of the below is how to get to code complete (i.e. no bugs, functioning code). I have noticed many times that I know the pattern, start coding, and yet, I mess up when I write code.

I have found writing pseudocode to be the easiest way to flush out my thoughts. Below is a guide/hack book that I often use.

Some Useful links

Observations

Pseudocode

Things to focus on when writing pseudocode

Arrays