If you sit down at your specified time and are drawing a blank, get a new document/piece of paper and freewrite. Write ANYTHING, even if you just write “I have no idea what to say” over and over. Ignore spelling and grammer. Write stream of consciousness. Just get something on the page. Eventually something will click and you will start to come up with ideas that are more useful. But staring at a blank page is intimidating. You can always delete/throw out what you wrote later but you have to start somewhere.
I'm not sure there's a programming equivalent though. Playing on the REPL?
this is similar: when finishing work for the day, leave some small simple thing undone. then complete it at the beginning of the next day, to draw yourself back into the project.
I will often do this when I am drawing a blank. Write psuedo-code, or code that is how you would like it to be, if your language / macros / libraries supported it. Then you can worry later about making your language support what you just wrote. This eliminates a whole set of mental blocks to writing code.
I don't write anything longer than a page or two of script, but sometimes I'll walk away from the computer and scribe psuedocode onto a few sheets of paper, because I'm talented enough at becoming perplexed to be able to do it in that short a script.
I liked this comment:
If you sit down at your specified time and are drawing a blank, get a new document/piece of paper and freewrite. Write ANYTHING, even if you just write “I have no idea what to say” over and over. Ignore spelling and grammer. Write stream of consciousness. Just get something on the page. Eventually something will click and you will start to come up with ideas that are more useful. But staring at a blank page is intimidating. You can always delete/throw out what you wrote later but you have to start somewhere.
I'm not sure there's a programming equivalent though. Playing on the REPL?