views:

382

answers:

23

Sometimes coding issues come up and you really need to think about something different in order to refocus.

How do you forget about a current coding problem?

+1  A: 

I like to go home and kick a ball with my son. In order to do this, you will need to have children first. Also I only got 3 hours sleep last night because he kept waking me up so all in all it's a bit of a wash on the relaxation side of things.

1800 INFORMATION
+1  A: 

Physical activity helps. As does reading (usually a food mag so I can think about what to do for dinner).

tunaranch
+4  A: 

I surf SO.

BoltBait
Then you get addicted to it, then thats the end of it. ;)
Nathan W
A: 

In the end it doesn't matter, because whatever I think about eventually leads me back to my problem. If I don't solve it, I never forget, and I just keep going back to it. Everything else becomes a blur, and until I have clarity my entire existence revolves around the problem. I know. Sad.

hal10001
+1  A: 

Rock-climbing.

It's hard to think of anything outside the here and now when you're hanging by your fingernails up a wall.

Andrew Edgecombe
A: 

I actually go for a long walk listening to some podcasts on other technology and development subjects.

codewright
+3  A: 

Beer is your friend

seanb
A: 

Working on a personal project at home. Usually when I'm working out the issues in my own applications I find the solutions for the ones at work and vice versa.

Jeremy Reagan
+1  A: 

Whenever something worries me too much I just go to see a movie!

z-boss
+7  A: 

Fresh air, sunshine, and walking if possible. At the bare minimum, listening to music.

chauncey
+1  A: 

i get to my everyday activities and suddenly solutions pops out itself even when i don't think (and probably especially when) about my coding problem at all

MoreThanChaos
+2  A: 

inject some Team Fortress 2 directly into your brain. Its a huge stress reliever in general, as are most video games.

outsyncof
+3  A: 

Take a nap or sleep! Give some time to your brain to sort it out subconsciously :)

srand
A: 

I find running and hiding under a blanket until the problem fixes its self to be somewhat ineffective. ;)

Doing some household chores, breaking for food (and building giant sandwiches), anything which takes you out of where the computer is can be though!

Nidonocu
+3  A: 

Besides a good night's sleep, which has already been suggested, I take an extra long shower in the morning, and the problem inevitably creeps back into my head. Without pen and paper, or the code right in front of me, I don't get caught up in the details and language, and can usually work out the proper logic in my head like one should in the first place, but sometimes doesn't because they're pressed for time or stressed out.

SauceMaster
A: 

Table tennis.

Jeffrey L Whitledge
+2  A: 

Youtube... or youp@rn... depending if i am at the office or at home

Cesar
+1  A: 

For me, video games or [me playing the] music.

Pistos
+3  A: 

Exercise. Cook. Practice musical instruments.

grettke
A: 

I don't know what helps me forget about it, but driving on the freeway/highway helps me me to think about it without really thinking about it (if that makes sense).

Paul Reiners
A: 

Walking the dog. I can't count, how many solutions came to my mind by spending half an hour quality time with my pet.

A: 

Go outside, smoke a sigaret, listen some good music.

MysticSlayer
A: 

Running helps me a lot. The bigger the problem is, the longer I will have to run.

jdecuyper