For you, maybe. I understand that fitness is growing to become a new mainstream religion in the West, but not everyone wants to participate in this.
That said, I'm not saying one should not have a healthy lifestyle. Sure, encourage more physical activity. But for the love of Great Maker, do not break up the time kids spend on intellectual tasks or hobbies into small chunks. You can do fitness rituals in 15-minutes stretches, but you can't do anything that requires any kind of creativity or focus in that time.
If you mean Pomodoros, then it doesn't count - the whole idea of "Pomodoro break" is to be short and spent in such a way as to not really break you out of focus.
If you can just sit down at random times and immediately code for 20 minutes with full focus, please tell us your secret. It sounds like a superhuman skill.
I do the same thing, 30 minute stints, 3-5 minute breaks. Occasionally if I'm really rolling I'll just keep going but I generally make sure to stop for breaks.
The key is to do things that won't get you mentally distracted, has a good stopping point, and lets you mentally rest.
Good breaks:
- I walk around the building
- Watch a short comedy youtube video
- Scroll through memes/comics
- Read blog posts, usually ones that aren't too detail-oriented and with good stopping points (Coding Horror is a good example)
- Listen to an instrumental music song (no lyrics), close my eyes, maybe get some fresh air.
Bad breaks:
- Start a long email
- Other projects.
- Anything mentally taxing or stressful (don't pay bills on break, don't try to figure out what you'll have for dinner)
- Read an exciting book that you don't want to put down
Doing this helps me stay focused all day. Over an 8 hour shift I take breaks for approx 48-80 minutes (plus lunch), so at most a little over an hour is wasted--versus burning out after just a few hours, writing bad code that I then spend the next day cleaning up.
This further translates into me being able to work some more on some side projects when I get home without getting burnt out--and not always programming, but other mental work like writing, art, meal planning, etc.
I'd question how effective a 15-minute fitness session is; it usually takes me that long to get really warmed up, not to mention the time it takes to get cleaned up after I'm done.
As I am a fan of the lazy programmer theory, we should be encouraging people to be lazy now, so that the biochemical effects of physical activity may be effortlessly emulated by a brilliant technical workaround later. The more smart people we have working on exercise-free health, the better.
Your selfish act of keeping your own body healthy with literally dozens of minutes of pointless kilocalorie-burning and wasted watts every week is a Nash equilibrium choice. Think of all the benefits to society that could be realized if no one ever needed to exercise to stay healthy. But if you're healthy now, you have no particular incentive to cheat death. You're taking brains out of that innovation lottery.
Come on, people. We can automate people out of their paying jobs, but can't automate exercise out of existence?!
Perhaps there is a sort of cognitive dissonance in play. People who have remained healthy their entire lives by disciplined application of exercise would undoubtedly feel betrayed and devalued when people can achieve the same results with drugs and implants.
/s
Programming and doing exercise are not entirely rivalrous tasks, but I can get a lot done in 3 hours if I am completely focused and entirely uninterrupted (even from self-sourced interruptions).
It really depends on who you ask. Some people may prioritize being the best programmer they can be over being healthy, but it's undeniable the connection between healthy body and a healthy mind.
That said, I'm not saying one should not have a healthy lifestyle. Sure, encourage more physical activity. But for the love of Great Maker, do not break up the time kids spend on intellectual tasks or hobbies into small chunks. You can do fitness rituals in 15-minutes stretches, but you can't do anything that requires any kind of creativity or focus in that time.