I recently started a new supplementary coding technique that I have not heard about anywhere else. I'm not sure what to call it, although internally I've been calling it streaming, an abbreviation for stream of consciousness programming. It works by writing out how you are solving a problem.
Here's a real-life example that likely took place over the course of a couple of hours:
control_parsing
Go through documents and figure out what appropriate values would be for the metadata and the control data to get it out
Given a standard document, the ability to correctly parse out the fields
Given a patient identifier, find the matching patient
What API call do I use for this?
Where is the system id of 387 coming from? I could swear I've seen that before
I don't think it's actually used, I think that we just use the patient identifier and the user's institution id
Pretend we are calling the API call with the known patient identifier and user's institution id to ensure that I have the right mental model
Process
I use vim to type out my thoughts and save them a text file. I could see marking things off by putting '#' at the beginning of the line, which for me would gray the line out, but normally I just delete things when I get done. This results in a nice feeling of crossing things off of the list. If I'm in the heat of solving a problem, I often don't write or delete lines. But when I come to a stopping point or am considering what next to do, I usually write out what I am thinking. This minimizes overhead and preserves flow.