From now on, I'm writing all my code on a legal pad first.
Real scratch paper I use only for drawing angles and lines when dealing with geometry.
I recall Donald Knuth stating he programs by sitting next to a big trash bin and writing down all code in pieces of paper, most of which he discards.