Ask HN: How do you code when you're not feeling well?
I find coding to be hard. Particularly, if I'm not having my best day my productivity while coding plummets significantly.
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
22 comments
[ 4.7 ms ] story [ 59.8 ms ] threadNot 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.
It's good to know your opinion on rest, thank you very much
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.
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!
This leaves the chronically ill, and medically under-served, no options doesn't it?
Sometimes you gotta do things. Even when you're several twinkles short of glittering.
I'm not a doctor.
I don't know how to advise the chronically ill and medically under-served, so I can't speak to those circumstances.
What would you suggest?
:)
I'll implement the just focus on one part of one project thing though, sounds like a smart strategy.
Thanks for sharing your wisdom
Happy to hear, thanks!
Best of luck.
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.
Good time to review user experience from your diminished perspective.