In Getting Things Done there is a work flow describing how to work with Actions. I found a copy of it at Metamagazine.

Getting Things Done Workflow
Getting Things Done Workflow
Im not going to get into the details, read the book instead, but what I want to do is throw out a thought. Most code items come into the “Do It” category of items.