I've gotten into a habit of summarizing my work after a programming binge, and lately I've been modifying the way that I write comments (using different symbols to indicate different things) to facilitate automated documentation generation for my code. It's saved a ton of time.