Assuming you mean the inability to solve a provlem...Play a few games of ping pong. Walk around outside. Talk with another coworker about the problem, from start to finish and have them question all your assumptions.
I prefer to pull out my sketchbook and try to visualize/diagram the problem/challenge in (sometimes) several ways.. This always helps me get a new perspective on it.. And get some cool doodles in which is always fun.
Depends on why you're feeling blocked. Is it because you don't know what to do next or because you just aren't enjoying writing that program?
Pair programming can help with both. When you have the social pressure of someone sitting next to you, you can build up momentum that you can hang onto even after you're back to programming alone.
4 comments
[ 3.7 ms ] story [ 20.0 ms ] thread(https://en.wikipedia.org/wiki/Rubber_duck_debugging, works for design problems as well)
Move around (not slowly walking to the kitchen to fetch yet another coffee, something more energetic)
Pair programming can help with both. When you have the social pressure of someone sitting next to you, you can build up momentum that you can hang onto even after you're back to programming alone.