Ask HN: How do you force yourself to take breaks while coding?
4 points
1 day ago
| 7 comments
| HN
I'm a dev with zero self-control. "One more function" turns into 3 hours.

Tried Apple Screen Time – I just click "Ignore" every time. Tried Pomodoro apps – closed them when they got annoying.

What actually works for you? Hardware timers? Standing desks? Blocking software?

I'm building a macOS tool that uses full-screen overlays with a 30s cooldown to bypass, but curious what approaches others have found effective.

vmt-man
2 hours ago
[-]
I use classic pomodoro technique :) It helps even for my back.
reply
JohnFen
1 day ago
[-]
I don't do this to force me to take breaks, but it does that as a side-effect. I am constantly drinking plain water while I'm working, which makes me get up to relieve myself every couple of hours.
reply
dyingkneepad
19 hours ago
[-]
I have the opposite problem: I have to force myself to not take so many breaks!
reply
WheelsAtLarge
1 day ago
[-]
I wrote a script that set an X countdown time to shutdown. The script gave a warning at five minutes and 1 minute until shutdown. Once I set it I could not stop it. It would load automatically at boot time. It worked rather well until I decided to stop using it. I don't have a solution for giving up. :)
reply
glidea
1 day ago
[-]
Yeah I don't think any tool can fully solve this – it's ultimately a willpower thing.

the tool's job is to add friction, not to be unbreakable. Even if you bypass it sometimes, if it stops you from staying up late a few more times per month, that's a win

Curious – what made you stop using your script?

reply
WheelsAtLarge
19 hours ago
[-]
I had a deadline to meet. I took it off "for a bit" but never put it back.
reply
dennisjoseph
19 hours ago
[-]
I cook meals and do work in parallel.. you'll be forced to take breaks, to check on the steam, oven, air frier, marination etc.
reply
al_borland
1 day ago
[-]
Drink a lot of water. The bladder can only be ignored for so long.
reply
glidea
1 day ago
[-]
Honestly, this is probably the most reliable method. Biology > willpower.

I've tried the water trick but then I just hold it until I "finish this one thing"... which is the same problem.

reply
abstractspoon
1 day ago
[-]
I have a cat
reply
glidea
1 day ago
[-]
The ultimate interrupt-driven system. No snooze button. LoL..
reply