During days like the ones described, I find exercise and breathing exercises help me get back on track but only moderately.
If anybody has better techniques I would like to learn about them. I am grateful for any advice.
All the best, Santy
If you're sick -> take care of that first. Don't work.
If you're just having an off day, trouble focusing, not feeling in the mood, that's different. I can suggest a few things that's worked for me.
1) Focus on just doing one thing.
Pick your most important project, then pick one specific piece of that, and shut down everything else until you at least complete that.
2) Set a timer.
If you're problem is getting started on a new or challenging project, do something like the pomodoro technique where you just promise yourself you'll work on it for X minutes and then stop. This removes some of the barrier to entry and can help you get started.
3) Remove distractions.
Similar to the first point, but is Slack always on? Are you getting notifications from your phone? Checking e-mail? This is a problem with our current life, we have too much competing for our attention. A lot of what we need to do to be successful is blocking out the noise so we can focus.
Hope this helps!
I don't. When I get sick, I get stupid. If I try to code in those conditions, I'm very likely to just make a big mess of everything. Big picture, I get better productivity and code quality if I stop coding until I have recovered.
Bad days, if I feel i can try working on something, I tend to stick to smaller "side" parts of a bigger task. Grooming dotfiles, editing docs, that kind of thing. Limit the possible impact of mistakes, and do things more amenable to non-thinking "change and try again" approaches.
Not really a technique, but something that worked for me.
EDIT: This is for when I'm feeling unproductive/down, not when I am feeling ill. The best thing for illness is rest and the right meds and nutrition.
Good time to review user experience from your diminished perspective.
I usually just try again tomorrow when I can't get anything done. Or I try at 5pm and work later than usual because I didn't do anything all day lol.