I find myself playing a video game every 1-2 hours of programming to have a break. After playing for a few minutes i go back to coding. Sometimes i surf to websites like this or visit other blogs.
What do you do?
I find myself playing a video game every 1-2 hours of programming to have a break. After playing for a few minutes i go back to coding. Sometimes i surf to websites like this or visit other blogs.
What do you do?
I usually:
Drink heavily.
In all seriousness, I play video games, play with my children, and get up and get some fresh air.
One of the following:
I usually don't take breaks unless I am stuck on a problem. Otherwise I'll break the flow I am in.
When I am stuck I'll usually go home or just get up and do something else. I find that subconsciously my mind is freed up to think about the problem and a solution just comes to me that way.
At home I play EverQuest 2. Ironically, it makes me think about programming.
At work, I read Stack Overflow, my RSS reader, and occasionally, switch to a paperback I've been reading for a while.
I would recommend some physical activity! We have a ping pong table downstairs in our office and I usually play a quick game when I need a break. Otherwise I walk down the street to get a coffee and some fresh air. Getting your ass out of the chair and your eyes off the monitor will get your blood pumping and probably reduce eyestrain.
I usually go for a walk, hug my kids, or talk to ACTUAL HUMANS. Basically get out of the cave.
Distance running. 6 miles at sub-eight min/mile pace clear out anything in the brain :)
Don't underestimate even the simplest of physical activities, such as walking. It gets your blood pumping, as in "into your head", and then you come up with great ideas. Boom!
Smoking, unfortunately. Don't be an idiot like me, take a walk instead.
Smoking It's a bad habit but at least you meet people from other departments.
Try something less technical and more creative. Study art - try your hand at drawing. Photography is easy to start with.
If you're not walking away from the computer you're really not taking a break.
1) Surf MathWorks/StackOverflow
2) Kongregate!!!
3) Listen to some death metal (I just got the Dethalbum!)
StackOverflow. I'm actually taking a break from coding right now ;)
Go to reddit funny and have a good laugh. and break to get a drink of water or to the bathroom. and sometimes to youtube for some funny videos, short ones so i can get back to my flow later.
Flying. There's nothing like a strong crosswind on final approach to take your mind off of programming :-)
Otherwise, I like to go running. It seems to restore a lot of the things that sitting in front of a computer all day will take away from you.
I would:
Office pranks on your colleagues...priceless.
I.e. put sticky tape under their mouse and watch as they move their mouse and nothing happens. Then they check the pc connection and bang on the mouse. Then they finally look under the mouse and realise someone has stuck a piece of paper to block the infared light.
I usually do one of the following:
Usually I stand up, stretch for about 10 minutes. Do some squats and lunges, get the blood flowing again. Remember that sitting for long periods of time (more than 1 hour) is just like lying down for too long, and you can get blood clots. Crack your back, do some jumping jacks, whatever is good for you. At my job, we are free to do whatever we want, so every hour I go outside, walk to the corner store, have a smoke (don't smoke if your not already addicted), talk to the clerk for 5 minutes, shake my legs a bit to get good blood flow, and all the while i do brain exercises on my iPhone. About the clerk at the store though, she is very good looking, and believe it or not, that can get your blood flow going again. Also, I take Centrum Cardio and an Aspirin everyday. No matter how much you love your job, or love to code, you have to stay in good health.
EDIT: Also, I am 21 years old, and I have a heart condition and a missing bone in my ankles, so I can't run (I can bike, though). It is important for me to do this. It's important for you too, so you don't develop an illness. High cholesterol or thick blood is nothing to play with, no matter how good your job is. Keeping the muscles active and in working order is important for doing your job well and feeling good. I drink 1 or 2 shots a day, which actually LOWERS your chance of a heart attack, stroke, or clot, but more than that or starting to drink if you never have can just make it worse.
When I am not coding and find some spare time between performing house chores and playing with my kid, I usually grab one of the programming books and start to intake the softaware development knowledge. I might be in the minority in this regard, but this is a very mind refreshing and empowering experience that insatiates my software learning desire.
I usually go for a walk in the park. On sunny days I'll grab a big cup of coffee and smoke a cigar outside.
Work out for a small while, do some push-ups or sit-ups. Then have a cup of tea.
Programming.
Wait, what do I do to take breaks from programming?... Well, that's just crazy talk.
At work its Foosball, if its physical (however small) i think it helps out.
I eat toast
I have a mug of tea
I chat on MSN/Twitter
I have a mug of tea
I nap
Play drums (if at home), great way to get the blood flowing an energy levels to jump up.
Unfortunately at work there's not much you can do, but I sure try to stretch the legs a little, and most importantly, relax the eyes a bit by looking at some distant point for a couple of minutes every hour or so (in order to prevent that Computer Vision Syndrome or CVS thing).
Oxygen. Brisk walk. Yard work. Get out of doors. Turn over some 02.
Meditate. Focus on the breath. Nothing fancy, just follow the breath.
Both are hugely refreshing.
Play video games. Just relieves a lot of stress and I end up clearing my mind.
Some things I do:
I find either a hard work-out (blood to the brain) or, when I have time, a few hours at the Trap or Sporting Clays Range. Programming, with all of its close-up work, is hard on the eyes and the Clay Sports are ideal for training them to focus at distance.
Speaking of pranks, I had fun with an annoyotron from ThinkGeek. There were about 16 people within hearing range of it because of acoustics. Took half a day before it was uncovered.
Which brings me to how I got the annoyotron. I was recently inspired to learn guitar because of rock band. So I purchased an iAxe USB guitar from think geek. Also picked up the Hal Leonard Guitar Method pack...you would have thought I single-handedly programmed an autonomous vehicle from my excitement when I learned to play a simple melody on the first string.
I go to the restroom.
I can't tell you how many problems I've figured out while staring into a urinal. I find getting away from the problem and thinking about something else allows new "outside the box" solutions to pop into my head.
I'll usually do something mindless like check Facebook, or play Robot Unicorn Attack.
Yeah get out of the monitor and give some rest to your eyes. Can we do anything without eyes???. Need to give them some rest for sure. I would love to work in a setting with a natural lighting (like a open window) so your eyes and body will feel some new life in it.